From 14f70beac20dcedf6b9f5d335baa62cfea0bd2e0 Mon Sep 17 00:00:00 2001 From: Krombel Date: Sat, 17 Mar 2018 11:27:10 +0100 Subject: [PATCH 1/2] Add languages (czech, galician and serbian) --- scripts/copy-res.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/copy-res.js b/scripts/copy-res.js index 84b1d1b2598..a17e028e812 100755 --- a/scripts/copy-res.js +++ b/scripts/copy-res.js @@ -7,10 +7,11 @@ // a translation in the app (because having a translation with only // 3 strings translated is just frustrating) // This could readily be automated, but it's nice to explicitly -// control when we languages are available. +// control when new languages are available. const INCLUDE_LANGS = [ {'value': 'bg', 'label': 'Български'}, {'value': 'ca', 'label': 'Català'}, + {'value': 'cs', 'label': 'čeština'}, {'value': 'da', 'label': 'Dansk'}, {'value': 'de_DE', 'label': 'Deutsch'}, {'value': 'en_EN', 'label': 'English'}, @@ -21,6 +22,7 @@ const INCLUDE_LANGS = [ {'value': 'eu', 'label': 'Euskara'}, {'value': 'fi', 'label': 'Suomi'}, {'value': 'fr', 'label': 'Français'}, + {'value': 'gl', 'label': 'Galego'}, {'value': 'hu', 'label': 'Magyar'}, {'value': 'ko', 'label': '한국어'}, {'value': 'lv', 'label': 'Latviešu'}, @@ -30,8 +32,9 @@ const INCLUDE_LANGS = [ {'value': 'pt', 'label': 'Português'}, {'value': 'pt_BR', 'label': 'Português do Brasil'}, {'value': 'ru', 'label': 'Русский'}, - {'value': 'sv', 'label': 'Svenska'}, + {'value': 'sr', 'label': 'српски'}, {'value': 'sk', 'label': 'Slovenčina'}, + {'value': 'sv', 'label': 'Svenska'}, {'value': 'th', 'label': 'ไทย'}, {'value': 'te', 'label': 'తెలుగు'}, {'value': 'tr', 'label': 'Türk'}, From 57803f7a4152b4e79adcb776ad2e655f3d78aed7 Mon Sep 17 00:00:00 2001 From: Krombel Date: Sat, 17 Mar 2018 16:24:47 +0100 Subject: [PATCH 2/2] reorder based on language code --- scripts/copy-res.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/copy-res.js b/scripts/copy-res.js index a17e028e812..eb3a3daaaa9 100755 --- a/scripts/copy-res.js +++ b/scripts/copy-res.js @@ -14,9 +14,9 @@ const INCLUDE_LANGS = [ {'value': 'cs', 'label': 'čeština'}, {'value': 'da', 'label': 'Dansk'}, {'value': 'de_DE', 'label': 'Deutsch'}, + {'value': 'el', 'label': 'Ελληνικά'}, {'value': 'en_EN', 'label': 'English'}, {'value': 'en_US', 'label': 'English (US)'}, - {'value': 'el', 'label': 'Ελληνικά'}, {'value': 'eo', 'label': 'Esperanto'}, {'value': 'es', 'label': 'Español'}, {'value': 'eu', 'label': 'Euskara'}, @@ -32,11 +32,11 @@ const INCLUDE_LANGS = [ {'value': 'pt', 'label': 'Português'}, {'value': 'pt_BR', 'label': 'Português do Brasil'}, {'value': 'ru', 'label': 'Русский'}, - {'value': 'sr', 'label': 'српски'}, {'value': 'sk', 'label': 'Slovenčina'}, + {'value': 'sr', 'label': 'српски'}, {'value': 'sv', 'label': 'Svenska'}, - {'value': 'th', 'label': 'ไทย'}, {'value': 'te', 'label': 'తెలుగు'}, + {'value': 'th', 'label': 'ไทย'}, {'value': 'tr', 'label': 'Türk'}, {'value': 'zh_Hans', 'label': '简体中文'}, // simplified chinese {'value': 'zh_Hant', 'label': '繁體中文'}, // traditional chinese