ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix dev locale
Chocobozzzc0ffdd09582f
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.tsindex 9d655c5237..118831ed3c 100644--- a/client/src/app/app.module.ts+++ b/client/src/app/app.module.ts@@ -71,7 +71,7 @@ export function metaFactory (serverService: ServerService): MetaLoader {useFactory: (locale) => {// On dev mode, test localizationif (isOnDevLocale()) {- locale = getDevLocale()+ locale = buildFileLocale(getDevLocale())return require(`raw-loader!../locale/target/angular_${locale}.xml`)}diff --git a/client/src/app/shared/i18n/i18n-utils.ts b/client/src/app/shared/i18n/i18n-utils.tsindex 1838dc7522..30d65a2a28 100644--- a/client/src/app/shared/i18n/i18n-utils.ts+++ b/client/src/app/shared/i18n/i18n-utils.ts@@ -5,7 +5,7 @@ function isOnDevLocale () {}function getDevLocale () {- return 'fr'+ return 'fr-FR'}export {diff --git a/client/src/main.ts b/client/src/main.tsindex 061be17dee..f456e89c5d 100644--- a/client/src/main.ts+++ b/client/src/main.ts@@ -6,6 +6,7 @@ import { environment } from './environments/environment'import { hmrBootstrap } from './hmr'import { getDevLocale, isOnDevLocale } from '@app/shared/i18n/i18n-utils'+import { buildFileLocale } from '../../shared'let providers = []if (environment.production) {@@ -14,7 +15,7 @@ if (environment.production) {// Template translation, should be in the bootstrap stepif (isOnDevLocale()) {- const locale = getDevLocale()+ const locale = buildFileLocale(getDevLocale())const translations = require(`raw-loader!./locale/target/angular_${locale}.xml`)providers = [