aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-03 14:55:16 +0200
committerChocobozzz <me@florianbigard.com>2020-04-03 14:56:05 +0200
commit1fe654e0963da8c2801561be10de3222055a2497 (patch)
treee41eefecd2b014840418241729c5fe9438568de0 /client/src
parenta7d3671dc3c046b4f155528faf61c1930c049a51 (diff)
downloadPeerTube-1fe654e0963da8c2801561be10de3222055a2497.tar.gz
PeerTube-1fe654e0963da8c2801561be10de3222055a2497.tar.zst
PeerTube-1fe654e0963da8c2801561be10de3222055a2497.zip
Fix peertube interface i18n
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/app.module.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts
index 55e929e78..ef23c9655 100644
--- a/client/src/app/app.module.ts
+++ b/client/src/app/app.module.ts
@@ -81,12 +81,12 @@ export function metaFactory (serverService: ServerService): MetaLoader {
81 { 81 {
82 provide: TRANSLATIONS, 82 provide: TRANSLATIONS,
83 useFactory: (locale: string) => { 83 useFactory: (locale: string) => {
84 // Default locale, nothing to translate 84 // Default locale, nothing to translate
85 const completeLocale = getCompleteLocale(locale) 85 const completeLocale = getCompleteLocale(locale)
86 if (isDefaultLocale(completeLocale)) return '' 86 if (isDefaultLocale(completeLocale)) return ''
87 87
88 const fileLocale = buildFileLocale(locale) 88 const fileLocale = buildFileLocale(locale)
89 return require(`raw-loader!../locale/angular.${fileLocale}.xlf`) 89 return require(`raw-loader!../locale/angular.${fileLocale}.xlf`).default
90 }, 90 },
91 deps: [ LOCALE_ID ] 91 deps: [ LOCALE_ID ]
92 }, 92 },