mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-28 09:01:44 +00:00
[tests] Fix and refactor e2e test "Same keys" in "translations_spec.js" (#3809)
While working on the translations (in #3792 and #3794) I realised that the e2e "Same keys" tests were not working entirely. There was also a TODO entry for this in the test, as well as a try-catch-block workaround. I therefore fixed and refactored it. I also sorted the translations in `translations/translations.js`, so that the test outputs are alphabetically.
This commit is contained in:
committed by
GitHub
parent
faf15ad211
commit
2194ffd929
@@ -1,49 +1,49 @@
|
||||
let translations = {
|
||||
en: "translations/en.json", // English
|
||||
nl: "translations/nl.json", // Dutch
|
||||
af: "translations/af.json", // Afrikaans
|
||||
bg: "translations/bg.json", // Bulgarian
|
||||
ca: "translations/ca.json", // Catalan
|
||||
cs: "translations/cs.json", // Czech
|
||||
cv: "translations/cv.json", // Chuvash
|
||||
cy: "translations/cy.json", // Welsh (Cymraeg)
|
||||
da: "translations/da.json", // Danish
|
||||
de: "translations/de.json", // German
|
||||
el: "translations/el.json", // Greek
|
||||
eo: "translations/eo.json", // Esperanto
|
||||
es: "translations/es.json", // Spanish
|
||||
et: "translations/et.json", // Estonian
|
||||
fi: "translations/fi.json", // Suomi
|
||||
fr: "translations/fr.json", // French
|
||||
fy: "translations/fy.json", // Frysk
|
||||
es: "translations/es.json", // Spanish
|
||||
ca: "translations/ca.json", // Catalan
|
||||
cv: "translations/cv.json", // Chuvash
|
||||
gl: "translations/gl.json", // Galego
|
||||
gu: "translations/gu.json", // Gujarati
|
||||
he: "translations/he.json", // Hebrew
|
||||
hi: "translations/hi.json", // Hindi
|
||||
hr: "translations/hr.json", // Croatian
|
||||
hu: "translations/hu.json", // Hungarian
|
||||
id: "translations/id.json", // Indonesian
|
||||
is: "translations/is.json", // Icelandic
|
||||
it: "translations/it.json", // Italian
|
||||
ja: "translations/ja.json", // Japanese
|
||||
ko: "translations/ko.json", // Korean
|
||||
lt: "translations/lt.json", // Lithuanian
|
||||
"ms-my": "translations/ms-my.json", // Malay
|
||||
nb: "translations/nb.json", // Norsk bokmål
|
||||
nl: "translations/nl.json", // Dutch
|
||||
nn: "translations/nn.json", // Norsk nynorsk
|
||||
pl: "translations/pl.json", // Polish
|
||||
pt: "translations/pt.json", // Português
|
||||
"pt-br": "translations/pt-br.json", // Português Brasileiro
|
||||
sv: "translations/sv.json", // Svenska
|
||||
id: "translations/id.json", // Indonesian
|
||||
it: "translations/it.json", // Italian
|
||||
"zh-cn": "translations/zh-cn.json", // Simplified Chinese
|
||||
"zh-tw": "translations/zh-tw.json", // Traditional Chinese
|
||||
ja: "translations/ja.json", // Japanese
|
||||
pl: "translations/pl.json", // Polish
|
||||
el: "translations/el.json", // Greek
|
||||
da: "translations/da.json", // Danish
|
||||
tr: "translations/tr.json", // Turkish
|
||||
ru: "translations/ru.json", // Russian
|
||||
af: "translations/af.json", // Afrikaans
|
||||
hu: "translations/hu.json", // Hungarian
|
||||
is: "translations/is.json", // Icelandic
|
||||
et: "translations/et.json", // Estonian
|
||||
ko: "translations/ko.json", // Korean
|
||||
ro: "translations/ro.json", // Romanian
|
||||
cy: "translations/cy.json", // Welsh (Cymraeg)
|
||||
bg: "translations/bg.json", // Bulgarian
|
||||
cs: "translations/cs.json", // Czech
|
||||
hr: "translations/hr.json", // Croatian
|
||||
ru: "translations/ru.json", // Russian
|
||||
sk: "translations/sk.json", // Slovak
|
||||
sv: "translations/sv.json", // Svenska
|
||||
th: "translations/th.json", // Thai
|
||||
tlh: "translations/tlh.json", // Klingon
|
||||
"ms-my": "translations/ms-my.json", // Malay
|
||||
he: "translations/he.json", // Hebrew
|
||||
tr: "translations/tr.json", // Turkish
|
||||
uk: "translations/uk.json", // Ukrainian
|
||||
hi: "translations/hi.json", // Hindi
|
||||
gu: "translations/gu.json", // Gujarati
|
||||
gl: "translations/gl.json", // Galego
|
||||
lt: "translations/lt.json", // Lithuanian
|
||||
th: "translations/th.json" // Thai
|
||||
"zh-cn": "translations/zh-cn.json", // Simplified Chinese
|
||||
"zh-tw": "translations/zh-tw.json" // Traditional Chinese
|
||||
};
|
||||
|
||||
if (typeof module !== "undefined") {
|
||||
|
Reference in New Issue
Block a user