From 53fe91a6195f59c4bc8773eef0a66ecfdd1a1691 Mon Sep 17 00:00:00 2001 From: Geno Roupsky Date: Tue, 26 Jan 2021 18:19:31 +0200 Subject: [PATCH 1/2] Add el, tr, ar, fr languages --- config/languages.js | 12 ++++++++++++ example.env | 2 +- i18n/ar.json | 0 i18n/bg.json | 6 +++++- i18n/el.json | 0 i18n/en.json | 6 +++++- i18n/fr.json | 0 i18n/tr.json | 0 8 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 i18n/ar.json create mode 100644 i18n/el.json create mode 100644 i18n/fr.json create mode 100644 i18n/tr.json diff --git a/config/languages.js b/config/languages.js index 94a1b400..92f82866 100644 --- a/config/languages.js +++ b/config/languages.js @@ -10,5 +10,17 @@ module.exports = { }, mk: { label: 'LANGUAGE_MACEDONIAN' + }, + el: { + label: 'LANGUAGE_GREEK' + }, + tr: { + label: 'LANGUAGE_TURKISH' + }, + ar: { + label: 'LANGUAGE_ARABIC' + }, + fr: { + label: 'LANGUAGE_FRENCH' } } diff --git a/example.env b/example.env index 0ff5eb8e..3f7a0778 100644 --- a/example.env +++ b/example.env @@ -1,3 +1,3 @@ POEDITOR_APITOKEN="Take the readonly token from https://poeditor.com/account/api" POEDITOR_PROJECT="146255" -POEDITOR_LANGUAGES="bg en mk sq" +POEDITOR_LANGUAGES="bg en mk sq el tr ar fr" diff --git a/i18n/ar.json b/i18n/ar.json new file mode 100644 index 00000000..e69de29b diff --git a/i18n/bg.json b/i18n/bg.json index c50d4638..aa43194d 100644 --- a/i18n/bg.json +++ b/i18n/bg.json @@ -1074,5 +1074,9 @@ "ATLAS_MISSING_SPECIES_ZONE_TEXT": "Изберете квадрат от картата за да видите неустановените видове", "ATLAS_MISSING_SPECIES_ZONE_HEADER_SPECIES": "Вид", "ATLAS_MISSING_SPECIES_ZONE_NO_ROWS": "Липсват неустановени видове за този квадрат", - "FORM_ATLAS_SHORT": "Атлас Птици" + "FORM_ATLAS_SHORT": "Атлас Птици", + "LANGUAGE_GREEK": "Гръцки", + "LANGUAGE_TURKISH": "Турски", + "LANGUAGE_ARABIC": "Арабски", + "LANGUAGE_FRENCH": "Френски" } \ No newline at end of file diff --git a/i18n/el.json b/i18n/el.json new file mode 100644 index 00000000..e69de29b diff --git a/i18n/en.json b/i18n/en.json index 1d9229ff..479f45d0 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -1074,5 +1074,9 @@ "ATLAS_MISSING_SPECIES_ZONE_TEXT": "Select a square on the map to see the unidentified species", "ATLAS_MISSING_SPECIES_ZONE_HEADER_SPECIES": "Species", "ATLAS_MISSING_SPECIES_ZONE_NO_ROWS": "There are no unidentified species for this square", - "FORM_ATLAS_SHORT": "Atlas Birds" + "FORM_ATLAS_SHORT": "Atlas Birds", + "LANGUAGE_GREEK": "Greek", + "LANGUAGE_TURKISH": "Turkish", + "LANGUAGE_ARABIC": "Arabic", + "LANGUAGE_FRENCH": "French" } \ No newline at end of file diff --git a/i18n/fr.json b/i18n/fr.json new file mode 100644 index 00000000..e69de29b diff --git a/i18n/tr.json b/i18n/tr.json new file mode 100644 index 00000000..e69de29b From bf357638a2ebff22cddd570a359c6397b01c6321 Mon Sep 17 00:00:00 2001 From: Geno Roupsky Date: Tue, 26 Jan 2021 18:23:50 +0200 Subject: [PATCH 2/2] Handle empty translations --- i18n/ar.json | 1 + i18n/bg.json | 2 +- i18n/el.json | 1 + i18n/en.json | 2 +- i18n/fr.json | 1 + i18n/mk.json | 2 +- i18n/sq.json | 2 +- i18n/tr.json | 1 + 8 files changed, 8 insertions(+), 4 deletions(-) diff --git a/i18n/ar.json b/i18n/ar.json index e69de29b..0967ef42 100644 --- a/i18n/ar.json +++ b/i18n/ar.json @@ -0,0 +1 @@ +{} diff --git a/i18n/bg.json b/i18n/bg.json index aa43194d..ca3e9d59 100644 --- a/i18n/bg.json +++ b/i18n/bg.json @@ -1079,4 +1079,4 @@ "LANGUAGE_TURKISH": "Турски", "LANGUAGE_ARABIC": "Арабски", "LANGUAGE_FRENCH": "Френски" -} \ No newline at end of file +} diff --git a/i18n/el.json b/i18n/el.json index e69de29b..0967ef42 100644 --- a/i18n/el.json +++ b/i18n/el.json @@ -0,0 +1 @@ +{} diff --git a/i18n/en.json b/i18n/en.json index 479f45d0..7239402c 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -1079,4 +1079,4 @@ "LANGUAGE_TURKISH": "Turkish", "LANGUAGE_ARABIC": "Arabic", "LANGUAGE_FRENCH": "French" -} \ No newline at end of file +} diff --git a/i18n/fr.json b/i18n/fr.json index e69de29b..0967ef42 100644 --- a/i18n/fr.json +++ b/i18n/fr.json @@ -0,0 +1 @@ +{} diff --git a/i18n/mk.json b/i18n/mk.json index 6d1f3ac5..2a3256f1 100644 --- a/i18n/mk.json +++ b/i18n/mk.json @@ -977,4 +977,4 @@ "PUBLIC_THREATS_FILTER_6_MONTHS": "последни 6 месеци", "PUBLIC_THREATS_FILTER_1_YEAR": "последна година", "FIELD_CONFIDENTIAL": "Доверливо" -} \ No newline at end of file +} diff --git a/i18n/sq.json b/i18n/sq.json index c1dcde42..c96130a5 100644 --- a/i18n/sq.json +++ b/i18n/sq.json @@ -1031,4 +1031,4 @@ "FORM_DETAIL_BUTTON_CONFIRM": "Konfirmo", "SETTLEMENT_VALUE_UNKNOWN": "E panjohur", "SETTLEMENT_VALUE_PENDING": "Duke u procesuar" -} \ No newline at end of file +} diff --git a/i18n/tr.json b/i18n/tr.json index e69de29b..0967ef42 100644 --- a/i18n/tr.json +++ b/i18n/tr.json @@ -0,0 +1 @@ +{}