diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-16 11:48:48 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-27 09:41:54 +0200 |
commit | c0ffdd09582fa320446a12ada1d382fedcfcd82a (patch) | |
tree | 35b2d46b446e09aafc543f3716724499f2342d84 /client/src/main.ts | |
parent | 5d128505dca854cb7225624936d1053f06473260 (diff) | |
download | PeerTube-c0ffdd09582fa320446a12ada1d382fedcfcd82a.tar.gz PeerTube-c0ffdd09582fa320446a12ada1d382fedcfcd82a.tar.zst PeerTube-c0ffdd09582fa320446a12ada1d382fedcfcd82a.zip |
Fix dev locale
Diffstat (limited to 'client/src/main.ts')
-rw-r--r-- | client/src/main.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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' | |||
6 | 6 | ||
7 | import { hmrBootstrap } from './hmr' | 7 | import { hmrBootstrap } from './hmr' |
8 | import { getDevLocale, isOnDevLocale } from '@app/shared/i18n/i18n-utils' | 8 | import { getDevLocale, isOnDevLocale } from '@app/shared/i18n/i18n-utils' |
9 | import { buildFileLocale } from '../../shared' | ||
9 | 10 | ||
10 | let providers = [] | 11 | let providers = [] |
11 | if (environment.production) { | 12 | if (environment.production) { |
@@ -14,7 +15,7 @@ if (environment.production) { | |||
14 | 15 | ||
15 | // Template translation, should be in the bootstrap step | 16 | // Template translation, should be in the bootstrap step |
16 | if (isOnDevLocale()) { | 17 | if (isOnDevLocale()) { |
17 | const locale = getDevLocale() | 18 | const locale = buildFileLocale(getDevLocale()) |
18 | const translations = require(`raw-loader!./locale/target/angular_${locale}.xml`) | 19 | const translations = require(`raw-loader!./locale/target/angular_${locale}.xml`) |
19 | 20 | ||
20 | providers = [ | 21 | providers = [ |