X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fmain.ts;h=f456e89c5d799e6097ae1a78a5b11468bb24a6ed;hb=e452d2e2b80b2fbea88a1fe9c40b49e8241eae92;hp=061be17deec6ea3bc5441c57124481122c09e15f;hpb=74b7c6d48e9ca377fe938c8134ed74b612e62ba0;p=github%2FChocobozzz%2FPeerTube.git 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' 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 step if (isOnDevLocale()) { - const locale = getDevLocale() + const locale = buildFileLocale(getDevLocale()) const translations = require(`raw-loader!./locale/target/angular_${locale}.xml`) providers = [