From: Chocobozzz Date: Tue, 4 Feb 2020 15:48:54 +0000 (+0100) Subject: Add hu and th locales X-Git-Tag: v2.2.0-rc.1~541 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0df21c799f9e6882ceab3696a9499525be1eb6b5;p=oweals%2Fpeertube.git Add hu and th locales --- diff --git a/scripts/build/client.sh b/scripts/build/client.sh index d95bb9574..ee647bb99 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh @@ -42,6 +42,7 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then else # Supported languages languages=( + "hu-HU" "th-TH" "fi-FI" "nl-NL" "gd" "el-GR" "es-ES" "oc" "pt-BR" "pt-PT" "sv-SE" "pl-PL" "ru-RU" "zh-Hans-CN" "zh-Hant-TW" "fr-FR" "ja-JP" "eu-ES" "ca-ES" "cs-CZ" "eo" "de-DE" "it-IT" ) diff --git a/shared/models/i18n/i18n.ts b/shared/models/i18n/i18n.ts index 9ae175df9..ff367b279 100644 --- a/shared/models/i18n/i18n.ts +++ b/shared/models/i18n/i18n.ts @@ -1,44 +1,48 @@ export const LOCALE_FILES = [ 'player', 'server' ] export const I18N_LOCALES = { - 'en-US': 'English', - 'fr-FR': 'Français', - 'ja-JP': '日本語', - 'eu-ES': 'Euskara', 'ca-ES': 'Català', 'cs-CZ': 'Čeština', - 'eo': 'Esperanto', - 'el-GR': 'ελληνικά', 'de-DE': 'Deutsch', + 'el-GR': 'ελληνικά', + 'en-US': 'English', + 'eo': 'Esperanto', + 'es-ES': 'Español', + 'eu-ES': 'Euskara', + 'fi-FI': 'suomi', + 'fr-FR': 'Français', + 'gd': 'Gàidhlig', + 'hu-HU': 'magyar', 'it-IT': 'Italiano', + 'ja-JP': '日本語', 'nl-NL': 'Nederlands', - 'es-ES': 'Español', 'oc': 'Occitan', - 'gd': 'Gàidhlig', - 'zh-Hant-TW': '繁體中文(台灣)', + 'pl-PL': 'Polski', 'pt-BR': 'Português (Brasil)', 'pt-PT': 'Português (Portugal)', - 'sv-SE': 'svenska', - 'pl-PL': 'Polski', - 'fi-FI': 'suomi', 'ru-RU': 'русский', - 'zh-Hans-CN': '简体中文(中国)' + 'sv-SE': 'svenska', + 'th-TH': 'ไทย', + 'zh-Hans-CN': '简体中文(中国)', + 'zh-Hant-TW': '繁體中文(台灣)' } const I18N_LOCALE_ALIAS = { - 'en': 'en-US', - 'fr': 'fr-FR', - 'eu': 'eu-ES', 'ca': 'ca-ES', 'cs': 'cs-CZ', 'de': 'de-DE', + 'en': 'en-US', 'es': 'es-ES', - 'pt': 'pt-PT', + 'eu': 'eu-ES', 'fi': 'fi-FI', - 'sv': 'sv-SE', + 'fr': 'fr-FR', + 'hu': 'hu-HU', + 'nl': 'nl-NL', 'pl': 'pl-PL', + 'pt': 'pt-PT', 'ru': 'ru-RU', - 'nl': 'nl-NL', + 'sv': 'sv-SE', + 'th': 'th-TH', 'zh': 'zh-Hans-CN', 'zh-CN': 'zh-Hans-CN', 'zh-TW': 'zh-Hant-TW'