diff options
Diffstat (limited to 'client/src/app/app.module.ts')
-rw-r--r-- | client/src/app/app.module.ts | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index b35cc1716..5c4616153 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts | |||
@@ -81,21 +81,7 @@ registerLocaleData(localeOc, 'oc') | |||
81 | { | 81 | { |
82 | provide: APP_BASE_HREF, | 82 | provide: APP_BASE_HREF, |
83 | useValue: '/' | 83 | useValue: '/' |
84 | }, | 84 | } |
85 | |||
86 | { | ||
87 | provide: TRANSLATIONS, | ||
88 | useFactory: (locale: string) => { | ||
89 | // Default locale, nothing to translate | ||
90 | const completeLocale = getCompleteLocale(locale) | ||
91 | if (isDefaultLocale(completeLocale)) return '' | ||
92 | |||
93 | const fileLocale = buildFileLocale(locale) | ||
94 | return require(`raw-loader!../locale/angular.${fileLocale}.xlf`).default | ||
95 | }, | ||
96 | deps: [ LOCALE_ID ] | ||
97 | }, | ||
98 | { provide: TRANSLATIONS_FORMAT, useValue: 'xlf' } | ||
99 | ] | 85 | ] |
100 | }) | 86 | }) |
101 | export class AppModule {} | 87 | export class AppModule {} |