aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-16 11:48:48 +0200
committerChocobozzz <me@florianbigard.com>2018-08-27 09:41:54 +0200
commitc0ffdd09582fa320446a12ada1d382fedcfcd82a (patch)
tree35b2d46b446e09aafc543f3716724499f2342d84 /client/src/app
parent5d128505dca854cb7225624936d1053f06473260 (diff)
downloadPeerTube-c0ffdd09582fa320446a12ada1d382fedcfcd82a.tar.gz
PeerTube-c0ffdd09582fa320446a12ada1d382fedcfcd82a.tar.zst
PeerTube-c0ffdd09582fa320446a12ada1d382fedcfcd82a.zip
Fix dev locale
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/app.module.ts2
-rw-r--r--client/src/app/shared/i18n/i18n-utils.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts
index 9d655c523..118831ed3 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 {
71 useFactory: (locale) => { 71 useFactory: (locale) => {
72 // On dev mode, test localization 72 // On dev mode, test localization
73 if (isOnDevLocale()) { 73 if (isOnDevLocale()) {
74 locale = getDevLocale() 74 locale = buildFileLocale(getDevLocale())
75 return require(`raw-loader!../locale/target/angular_${locale}.xml`) 75 return require(`raw-loader!../locale/target/angular_${locale}.xml`)
76 } 76 }
77 77
diff --git a/client/src/app/shared/i18n/i18n-utils.ts b/client/src/app/shared/i18n/i18n-utils.ts
index 1838dc752..30d65a2a2 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 () {
5} 5}
6 6
7function getDevLocale () { 7function getDevLocale () {
8 return 'fr' 8 return 'fr-FR'
9} 9}
10 10
11export { 11export {