Skip to content

Commit

Permalink
fix: use createRequired
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Sep 9, 2024
1 parent f60828d commit 69c3f77
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import rosetta, { Rosetta } from 'rosetta'
import en from '../src/locales/en.json' assert { type: 'json' }
import es from '../src/locales/es.json' assert { type: 'json' }
import { createRequire } from 'module'
const require = createRequire(import.meta.url)
const en = require('../src/locales/en.json')
const es = require('../src/locales/es.json')

export type Locale = 'en' | 'es'

Expand Down

0 comments on commit 69c3f77

Please sign in to comment.