ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix peertube interface i18n
Chocobozzz1fe654e0963d
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.tsindex 55e929e78a..ef23c96556 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 {{provide: TRANSLATIONS,useFactory: (locale: string) => {- // Default locale, nothing to translate+ // Default locale, nothing to translateconst completeLocale = getCompleteLocale(locale)if (isDefaultLocale(completeLocale)) return ''const fileLocale = buildFileLocale(locale)- return require(`raw-loader!../locale/angular.${fileLocale}.xlf`)+ return require(`raw-loader!../locale/angular.${fileLocale}.xlf`).default},deps: [ LOCALE_ID ]},diff --git a/shared/models/i18n/i18n.ts b/shared/models/i18n/i18n.tsindex 27b911b756..9a5ea27dc5 100644--- a/shared/models/i18n/i18n.ts+++ b/shared/models/i18n/i18n.ts@@ -33,20 +33,25 @@ const I18N_LOCALE_ALIAS = {'ca': 'ca-ES','cs': 'cs-CZ','de': 'de-DE',+ 'el': 'el-GR','en': 'en-US','es': 'es-ES','eu': 'eu-ES','fi': 'fi-FI','fr': 'fr-FR',+ 'ja': 'ja-JP',+ 'it': 'it-IT','hu': 'hu-HU','nl': 'nl-NL','pl': 'pl-PL',- 'pt': 'pt-PT',+ 'pt': 'pt-BR','ru': 'ru-RU','sv': 'sv-SE','th': 'th-TH','zh': 'zh-Hans-CN',+ 'zh-Hans': 'zh-Hans-CN','zh-CN': 'zh-Hans-CN',+ 'zh-Hant': 'zh-Hant-TW','zh-TW': 'zh-Hant-TW'}