forked from MapComplete/MapComplete
Small fixes
This commit is contained in:
parent
5c0e3662c1
commit
3e3da25edb
18 changed files with 263 additions and 103 deletions
|
@ -20,6 +20,7 @@ export class Translation extends UIElement {
|
|||
for (const translationsKey in translations) {
|
||||
count++;
|
||||
if (typeof (translations[translationsKey]) != "string") {
|
||||
console.error("Non-string object in translation: ", translations[translationsKey])
|
||||
throw "Error in an object depicting a translation: a non-string object was found. (" + context + ")\n You probably put some other section accidentally in the translation"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue