Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hexf00 committed Nov 11, 2024
1 parent a17629d commit 9c29255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/export-virtual-locales-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function exportVirtualLocalesModule() {

const key = `${generateRandomString(8)}${langVar}`
// if version is greater than 0.5.0, use lib/es/locale
const localePath = fs.existsSync(path.resolve('node_modules', packageName, 'lib/es/locale', `${lang}.d.ts`))
const localePath = fs.existsSync(path.resolve('node_modules', packageName, 'lib/es/locale', `${lang}.js`))
? 'lib/es/locale'
: 'lib/locale'
importStatement += `import ${key} from '${packageName}/${localePath}/${lang}';\n`
Expand Down

0 comments on commit 9c29255

Please sign in to comment.