Skip to content

Commit 1256d11

Browse files
committed
i18n: fix warning and restrict i18n loading
Signed-off-by: Louis Greiner <[email protected]>
1 parent d2049d1 commit 1256d11

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/core/i18n/i18n.service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ export class I18nService {
4646
}
4747

4848
async loadTranslations() {
49-
const languageTranslationsModule = await import(`src/assets/i18n/${this.language}.json`);
49+
const languageTranslationsModule = await import(
50+
/* webpackInclude: /(en|de|fr)\.json$/ */
51+
`src/assets/i18n/${this.language}.json`
52+
);
5053

5154
this.translations = this.flattenTranslations(languageTranslationsModule.default);
5255
loadTranslations(this.translations);

0 commit comments

Comments
 (0)