From fb9e6cb075197d54f9a39dc4b0f9c45038e900d5 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 31 Jul 2018 18:04:54 +0200 Subject: Add german, spanish and chinese (traditional, taiwan) languages --- shared/models/i18n/i18n.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'shared/models/i18n') 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 = { 'eu-ES': 'euskara', 'ca-ES': 'català', 'cs-CZ': 'čeština', - 'eo': 'Esperanto' + 'eo': 'Esperanto', + 'de-DE': 'Deutsch', + 'es-ES': 'español', + 'zh-Hant-TW': '中文 (繁體, 台灣)' // 'pl-PL': 'polski' } @@ -15,7 +18,9 @@ const I18N_LOCALE_ALIAS = { 'fr': 'fr-FR', 'eu': 'eu-ES', 'ca': 'ca-ES', - 'cs': 'cs-CZ' + 'cs': 'cs-CZ', + 'de': 'de-DE', + 'es': 'es-ES' // 'pl': 'pl-PL' } @@ -56,5 +61,5 @@ export function getShortLocale (locale: string) { export function buildFileLocale (locale: string) { const completeLocale = getCompleteLocale(locale) - return completeLocale.replace('-', '_') + return completeLocale.replace(/-/g, '_') } -- cgit v1.2.3