diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-31 18:04:54 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-31 18:04:54 +0200 |
commit | fb9e6cb075197d54f9a39dc4b0f9c45038e900d5 (patch) | |
tree | 5139e5381f17f4823edb7df3d5ed18ba3c6bec16 /shared/models | |
parent | a3d1026bf300a8bd7a95e9a25822cfa52adc4208 (diff) | |
download | PeerTube-fb9e6cb075197d54f9a39dc4b0f9c45038e900d5.tar.gz PeerTube-fb9e6cb075197d54f9a39dc4b0f9c45038e900d5.tar.zst PeerTube-fb9e6cb075197d54f9a39dc4b0f9c45038e900d5.zip |
Add german, spanish and chinese (traditional, taiwan) languages
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/i18n/i18n.ts | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/shared/models/i18n/i18n.ts b/shared/models/i18n/i18n.ts index 3f2ca4eaf..baf3fa0f4 100644 --- a/shared/models/i18n/i18n.ts +++ b/shared/models/i18n/i18n.ts | |||
@@ -6,7 +6,10 @@ export const I18N_LOCALES = { | |||
6 | 'eu-ES': 'euskara', | 6 | 'eu-ES': 'euskara', |
7 | 'ca-ES': 'català', | 7 | 'ca-ES': 'català', |
8 | 'cs-CZ': 'čeština', | 8 | 'cs-CZ': 'čeština', |
9 | 'eo': 'Esperanto' | 9 | 'eo': 'Esperanto', |
10 | 'de-DE': 'Deutsch', | ||
11 | 'es-ES': 'español', | ||
12 | 'zh-Hant-TW': '中文 (繁體, 台灣)' | ||
10 | // 'pl-PL': 'polski' | 13 | // 'pl-PL': 'polski' |
11 | } | 14 | } |
12 | 15 | ||
@@ -15,7 +18,9 @@ const I18N_LOCALE_ALIAS = { | |||
15 | 'fr': 'fr-FR', | 18 | 'fr': 'fr-FR', |
16 | 'eu': 'eu-ES', | 19 | 'eu': 'eu-ES', |
17 | 'ca': 'ca-ES', | 20 | 'ca': 'ca-ES', |
18 | 'cs': 'cs-CZ' | 21 | 'cs': 'cs-CZ', |
22 | 'de': 'de-DE', | ||
23 | 'es': 'es-ES' | ||
19 | // 'pl': 'pl-PL' | 24 | // 'pl': 'pl-PL' |
20 | } | 25 | } |
21 | 26 | ||
@@ -56,5 +61,5 @@ export function getShortLocale (locale: string) { | |||
56 | export function buildFileLocale (locale: string) { | 61 | export function buildFileLocale (locale: string) { |
57 | const completeLocale = getCompleteLocale(locale) | 62 | const completeLocale = getCompleteLocale(locale) |
58 | 63 | ||
59 | return completeLocale.replace('-', '_') | 64 | return completeLocale.replace(/-/g, '_') |
60 | } | 65 | } |