From 350131cbaf99bd1cbb2d0911093aa94d105de709 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 7 Nov 2019 15:33:23 +0100 Subject: Make build works --- client/src/app/app.module.ts | 4 ++-- client/src/main.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'client') diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index a3ea33ca9..38b7328e2 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts @@ -76,7 +76,7 @@ export function metaFactory (serverService: ServerService): MetaLoader { // On dev mode, test localization if (isOnDevLocale()) { locale = buildFileLocale(getDevLocale()) - return require(`raw-loader!../locale/target/angular_${locale}.xml`) + return require(`raw-loader!../locale/angular.${locale}.xlf`) } // Default locale, nothing to translate @@ -84,7 +84,7 @@ export function metaFactory (serverService: ServerService): MetaLoader { if (isDefaultLocale(completeLocale)) return '' const fileLocale = buildFileLocale(locale) - return require(`raw-loader!../locale/target/angular_${fileLocale}.xml`) + return require(`raw-loader!../locale/angular.${fileLocale}.xlf`) }, deps: [ LOCALE_ID ] }, diff --git a/client/src/main.ts b/client/src/main.ts index 86fdabba5..2b65072ad 100644 --- a/client/src/main.ts +++ b/client/src/main.ts @@ -16,7 +16,7 @@ if (environment.production) { // Template translation, should be in the bootstrap step if (isOnDevLocale()) { const locale = buildFileLocale(getDevLocale()) - const translations = require(`raw-loader!./locale/target/angular_${locale}.xml`) + const translations = require(`raw-loader!./locale/angular.${locale}.xlf`) providers = [ { provide: TRANSLATIONS, useValue: translations }, -- cgit v1.2.3