Skip to content

Commit

Permalink
fix(webpack4): fix import statement for locale files
Browse files Browse the repository at this point in the history
  • Loading branch information
jikkai committed Jun 4, 2024
1 parent 9b268a9 commit d9ef06f
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 @@ -35,7 +35,7 @@ export function exportVirtualLocalesModule() {
const langVar = `${lang.replace('-', '')}`

const key = `${generateRandomString(8)}${langVar}`
importStatement += `import ${key} from '${packageName}/locale/${lang}';\n`
importStatement += `import ${key} from '${packageName}/lib/locale/${lang}';\n`
languages[lang].add(key)
}
})
Expand Down

0 comments on commit d9ef06f

Please sign in to comment.