From c7444546e7b9706df40f1bf27563b1a3e29ff71f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 16 Dec 2020 11:45:12 +0100 Subject: Add gl support --- client/angular.json | 5 +++++ scripts/build/client.sh | 1 + shared/core-utils/i18n/i18n.ts | 2 ++ 3 files changed, 8 insertions(+) diff --git a/client/angular.json b/client/angular.json index 6c0289041..9bf02e271 100644 --- a/client/angular.json +++ b/client/angular.json @@ -93,6 +93,10 @@ "translation": "src/locale/angular.ca-ES.xlf", "baseHref": "/client/ca-ES/" }, + "gl": { + "translation": "src/locale/angular.gl-ES.xlf", + "baseHref": "/client/gl-ES/" + }, "cs": { "translation": "src/locale/angular.cs-CZ.xlf", "baseHref": "/client/cs-CZ/" @@ -307,6 +311,7 @@ "languages": [ "ar", "ca-ES", + "gl-ES", "cs-CZ", "da-DK", "de-DE", diff --git a/scripts/build/client.sh b/scripts/build/client.sh index 3bca9105a..0f5b2d976 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh @@ -29,6 +29,7 @@ languages=( ["ja"]="ja-JP" ["eu"]="eu-ES" ["ca"]="ca-ES" + ["gl"]="gl-ES" ["cs"]="cs-CZ" ["eo"]="eo" ["de"]="de-DE" diff --git a/shared/core-utils/i18n/i18n.ts b/shared/core-utils/i18n/i18n.ts index 9ad0f456d..cc7621da8 100644 --- a/shared/core-utils/i18n/i18n.ts +++ b/shared/core-utils/i18n/i18n.ts @@ -15,6 +15,7 @@ export const I18N_LOCALES = { 'fi-FI': 'suomi', 'fr-FR': 'Français', 'gd': 'Gàidhlig', + 'gl-ES': 'galego', 'hu-HU': 'magyar', 'it-IT': 'Italiano', 'ja-JP': '日本語', @@ -42,6 +43,7 @@ const I18N_LOCALE_ALIAS = { 'es': 'es-ES', 'eu': 'eu-ES', 'fi': 'fi-FI', + 'gl': 'gl-ES', 'fr': 'fr-FR', 'hu': 'hu-HU', 'it': 'it-IT', -- cgit v1.2.3