forked from MapComplete/MapComplete
Move legacy theme handling into a rewritting class, various small fixes
This commit is contained in:
parent
4471319588
commit
c2682fc56d
8 changed files with 178 additions and 174 deletions
|
@ -31,6 +31,9 @@ class TranslationPart {
|
|||
if (!translations.hasOwnProperty(translationsKey)) {
|
||||
continue;
|
||||
}
|
||||
if(translationsKey == "then"){
|
||||
throw "Suspicious translation at "+context
|
||||
}
|
||||
const v = translations[translationsKey]
|
||||
if (typeof (v) != "string") {
|
||||
console.error("Non-string object in translation while trying to add more translations to '", translationsKey, "': ", v)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue