We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fac817 commit 44d893eCopy full SHA for 44d893e
src/i18n/I18nComposable.ts
@@ -62,10 +62,7 @@ async function loadComponentLanguageFile(componentName: string) {
62
if (!(componentLang in loadedMessages) && i18nLang.value !== 'en') {
63
// Lazy-load translations. For English we don't load a language file but use the translation keys directly.
64
// Note that the request is cached and not repeated for parallel calls.
65
- const messages = await import(
66
- // tslint:disable-next-line: trailing-comma
67
- /* webpackChunkName: "lang-[request]" */ `./${i18nLang}/${componentName}.json`
68
- );
+ const messages = await import(`./${i18nLang.value}/${componentName}.json`);
69
70
loadedMessages[componentLang] = messages.default || {};
71
}
0 commit comments