aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/main.ts')
-rw-r--r--client/src/main.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/main.ts b/client/src/main.ts
index 061be17de..f456e89c5 100644
--- a/client/src/main.ts
+++ b/client/src/main.ts
@@ -6,6 +6,7 @@ import { environment } from './environments/environment'
6 6
7import { hmrBootstrap } from './hmr' 7import { hmrBootstrap } from './hmr'
8import { getDevLocale, isOnDevLocale } from '@app/shared/i18n/i18n-utils' 8import { getDevLocale, isOnDevLocale } from '@app/shared/i18n/i18n-utils'
9import { buildFileLocale } from '../../shared'
9 10
10let providers = [] 11let providers = []
11if (environment.production) { 12if (environment.production) {
@@ -14,7 +15,7 @@ if (environment.production) {
14 15
15// Template translation, should be in the bootstrap step 16// Template translation, should be in the bootstrap step
16if (isOnDevLocale()) { 17if (isOnDevLocale()) {
17 const locale = getDevLocale() 18 const locale = buildFileLocale(getDevLocale())
18 const translations = require(`raw-loader!./locale/target/angular_${locale}.xml`) 19 const translations = require(`raw-loader!./locale/target/angular_${locale}.xml`)
19 20
20 providers = [ 21 providers = [