aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-12-16 11:45:12 +0100
committerChocobozzz <me@florianbigard.com>2020-12-16 11:45:12 +0100
commitc7444546e7b9706df40f1bf27563b1a3e29ff71f (patch)
tree45082cd97f99b5b8ae928b90df3ee422b910708c
parent54363cffa4ac0bae1c986ef636e8687eb642f4a0 (diff)
downloadPeerTube-c7444546e7b9706df40f1bf27563b1a3e29ff71f.tar.gz
PeerTube-c7444546e7b9706df40f1bf27563b1a3e29ff71f.tar.zst
PeerTube-c7444546e7b9706df40f1bf27563b1a3e29ff71f.zip
Add gl support
-rw-r--r--client/angular.json5
-rwxr-xr-xscripts/build/client.sh1
-rw-r--r--shared/core-utils/i18n/i18n.ts2
3 files changed, 8 insertions, 0 deletions
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 @@
93 "translation": "src/locale/angular.ca-ES.xlf", 93 "translation": "src/locale/angular.ca-ES.xlf",
94 "baseHref": "/client/ca-ES/" 94 "baseHref": "/client/ca-ES/"
95 }, 95 },
96 "gl": {
97 "translation": "src/locale/angular.gl-ES.xlf",
98 "baseHref": "/client/gl-ES/"
99 },
96 "cs": { 100 "cs": {
97 "translation": "src/locale/angular.cs-CZ.xlf", 101 "translation": "src/locale/angular.cs-CZ.xlf",
98 "baseHref": "/client/cs-CZ/" 102 "baseHref": "/client/cs-CZ/"
@@ -307,6 +311,7 @@
307 "languages": [ 311 "languages": [
308 "ar", 312 "ar",
309 "ca-ES", 313 "ca-ES",
314 "gl-ES",
310 "cs-CZ", 315 "cs-CZ",
311 "da-DK", 316 "da-DK",
312 "de-DE", 317 "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=(
29 ["ja"]="ja-JP" 29 ["ja"]="ja-JP"
30 ["eu"]="eu-ES" 30 ["eu"]="eu-ES"
31 ["ca"]="ca-ES" 31 ["ca"]="ca-ES"
32 ["gl"]="gl-ES"
32 ["cs"]="cs-CZ" 33 ["cs"]="cs-CZ"
33 ["eo"]="eo" 34 ["eo"]="eo"
34 ["de"]="de-DE" 35 ["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 = {
15 'fi-FI': 'suomi', 15 'fi-FI': 'suomi',
16 'fr-FR': 'Français', 16 'fr-FR': 'Français',
17 'gd': 'Gàidhlig', 17 'gd': 'Gàidhlig',
18 'gl-ES': 'galego',
18 'hu-HU': 'magyar', 19 'hu-HU': 'magyar',
19 'it-IT': 'Italiano', 20 'it-IT': 'Italiano',
20 'ja-JP': '日本語', 21 'ja-JP': '日本語',
@@ -42,6 +43,7 @@ const I18N_LOCALE_ALIAS = {
42 'es': 'es-ES', 43 'es': 'es-ES',
43 'eu': 'eu-ES', 44 'eu': 'eu-ES',
44 'fi': 'fi-FI', 45 'fi': 'fi-FI',
46 'gl': 'gl-ES',
45 'fr': 'fr-FR', 47 'fr': 'fr-FR',
46 'hu': 'hu-HU', 48 'hu': 'hu-HU',
47 'it': 'it-IT', 49 'it': 'it-IT',