Skip to content

Commit

Permalink
update language locales
Browse files Browse the repository at this point in the history
  • Loading branch information
ballPointPenguin committed Jun 5, 2024
1 parent bafceda commit 0c84fc6
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 42 deletions.
75 changes: 33 additions & 42 deletions client-participation/js/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,68 +4,59 @@ var preloadHelper = require("./util/preloadHelper");
var Utils = require("./util/utils");

var translations = {
en_us: require("./strings/en_us.js"),
// ja: require("./strings/ja.js"),

// zh-Hant is Traditional Chinese (TW, MO and HK can use the same file.)
zh_Hant: require("./strings/zh_Hant.js"),

// zh-Hans is Simplified Chinese. (CN, SG and MY can use the same file.)
zh_Hans: require("./strings/zh_Hans.js"),

// Arabic
ar: require("./strings/ar.js"),
// Welsh
cy: require("./strings/cy.js"),
// Danish
da: require("./strings/da_dk.js"),

// German
de: require("./strings/de_de.js"),

// English
en_us: require("./strings/en_us.js"),
// Spanish
es: require("./strings/es_la.js"),

// Farsi
fa: require("./strings/fa.js"),

// French
fr: require("./strings/fr.js"),

// Frisian
fy: require("./strings/fy_nl.js"),
// Greek (Should this be 'el'?)
gr: require("./strings/gr.js"),
// Hebrew
he: require("./strings/he.js"),
// Croatian
hr: require("./strings/hr.js"),
// Italian
it: require("./strings/it.js"),

// Japanese
ja: require("./strings/ja.js"),
// Dutch
nl: require("./strings/nl.js"),

// Portuguese
// Brazilian Portuguese (all portuguese speakers are temporarily using the same file.)
pt_br: require("./strings/pt_br.js"),

// Japanese
ja: require("./strings/ja.js"),

// Croatian
hr: require("./strings/hr.js"),

// Portuguese (Timor-Leste)
pt_tl: require("./strings/pt_tl.js"),
// Romanian & Moldovan
ro: require("./strings/ro.js"),
// Russian
ru: require("./strings/ru.js"),
// Slovak
sk: require("./strings/sk.js"),

// Hebrew
he: require("./strings/he.js"),

// Welsh
cy: require("./strings/cy.js"),

// Greek
gr: require("./strings/gr.js"),

// Tamil
ta: require("./strings/ta.js"),
// Tetum (Timor)
tdt: require("./strings/tdt.js"),
// Ukrainian
uk: require("./strings/uk.js"),

// Russian
ru: require("./strings/ru.js"),

// Romanian & Moldovan
ro: require("./strings/ro.js"),

// Arabic
ar: require("./strings/ar.js"),
// Chinese
// zh-Hans is Simplified Chinese. (CN, SG and MY can use the same file.)
zh_Hans: require("./strings/zh_Hans.js"),
// Chinese (Taiwan)
// zh-Hant is Traditional Chinese (TW, MO and HK can use the same file.)
zh_Hant: require("./strings/zh_Hant.js"),
};


Expand Down
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions e2e/cypress/e2e/client-participation/i18n.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ describe('Interface internationalization', function () {
cy.ensureConversation()
})

it('translates into Arabic', function () {
checkTranslation('ar', this.convoId)
})

it('translates into Welsh', function () {
checkTranslation('cy', this.convoId)
})
Expand Down Expand Up @@ -40,6 +44,10 @@ describe('Interface internationalization', function () {
checkTranslation('fr', this.convoId)
})

it('translates into Frisian', function () {
checkTranslation('fy', this.convoId)
})

it('translates into Greek', function () {
checkTranslation('gr', this.convoId)
})
Expand Down Expand Up @@ -68,6 +76,10 @@ describe('Interface internationalization', function () {
checkTranslation('pt', this.convoId)
})

it('translates into Romanian', function () {
checkTranslation('ro', this.convoId)
})

it('translates into Russian', function () {
checkTranslation('ru', this.convoId)
})
Expand All @@ -76,6 +88,14 @@ describe('Interface internationalization', function () {
checkTranslation('sk', this.convoId)
})

it('translates into Tamil', function () {
checkTranslation('ta', this.convoId)
})

it('translates into Tetum', function () {
checkTranslation('tdt', this.convoId)
})

it('translates into Ukrainian', function () {
checkTranslation('uk', this.convoId)
})
Expand Down
5 changes: 5 additions & 0 deletions e2e/cypress/support/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,27 @@ export function readTranslation(lang, key = 'writePrompt') {

const locales = {
// <lang>: <filename>
ar: 'ar',
cy: 'cy',
da: 'da_dk',
de: 'de_de',
en: 'en_us',
es: 'es_la',
fa: 'fa',
fr: 'fr',
fy: 'fy_nl',
gr: 'gr',
he: 'he',
hr: 'hr',
it: 'it',
ja: 'ja',
nl: 'nl',
pt: 'pt_br',
ro: 'ro',
ru: 'ru',
sk: 'sk',
ta: 'ta',
tdt: 'tdt',
uk: 'uk',
'zh-CN': 'zh_Hans',
'zh-TW': 'zh_Hant',
Expand Down

0 comments on commit 0c84fc6

Please sign in to comment.