Use German as the base for tests

This commit is contained in:
Mike Bishop 2022-07-25 18:20:30 -04:00
parent 65e87aea52
commit 0c1e5ea881

View File

@ -164,7 +164,7 @@ describe("Translations", function () {
dom.window.onload = function () { dom.window.onload = function () {
const { Translator } = dom.window; const { Translator } = dom.window;
Translator.load(mmm, translations.en, false, function () { Translator.load(mmm, translations.de, false, function () {
base = Object.keys(Translator.translations[mmm.name]).sort(); base = Object.keys(Translator.translations[mmm.name]).sort();
done(); done();
}); });
@ -175,8 +175,10 @@ describe("Translations", function () {
console.log(missing); console.log(missing);
}); });
// Using German as the base rather than English, since
// at least one translated word doesn't exist in English.
for (let language in translations) { for (let language in translations) {
if (language === "en") { if (language === "de") {
continue; continue;
} }