useFactory: (locale) => {
// On dev mode, test localization
if (isOnDevLocale()) {
- locale = getDevLocale()
+ locale = buildFileLocale(getDevLocale())
return require(`raw-loader!../locale/target/angular_${locale}.xml`)
}
import { hmrBootstrap } from './hmr'
import { getDevLocale, isOnDevLocale } from '@app/shared/i18n/i18n-utils'
+import { buildFileLocale } from '../../shared'
let providers = []
if (environment.production) {
// Template translation, should be in the bootstrap step
if (isOnDevLocale()) {
- const locale = getDevLocale()
+ const locale = buildFileLocale(getDevLocale())
const translations = require(`raw-loader!./locale/target/angular_${locale}.xml`)
providers = [