]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/main.ts
Fix description/comments max width
[github/Chocobozzz/PeerTube.git] / client / src / main.ts
index 061be17deec6ea3bc5441c57124481122c09e15f..f456e89c5d799e6097ae1a78a5b11468bb24a6ed 100644 (file)
@@ -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 = [