forked from MapComplete/MapComplete
Fix translations
This commit is contained in:
parent
9a5c998fbe
commit
686fb29ed3
2 changed files with 2 additions and 2 deletions
|
|
@ -841,7 +841,7 @@
|
||||||
},
|
},
|
||||||
"grb": {
|
"grb": {
|
||||||
"layers": {
|
"layers": {
|
||||||
"1": {
|
"2": {
|
||||||
"tagRenderings": {
|
"tagRenderings": {
|
||||||
"building type": {
|
"building type": {
|
||||||
"question": "Was ist das für ein Gebäude?"
|
"question": "Was ist das für ein Gebäude?"
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ class TranslationPart {
|
||||||
}
|
}
|
||||||
const v = translations[translationsKey]
|
const v = translations[translationsKey]
|
||||||
if (typeof (v) != "string") {
|
if (typeof (v) != "string") {
|
||||||
console.error("Non-string object in translation while trying to add more translations to '", translationsKey, "': ", v)
|
console.error(`Non-string object at ${context} in translation while trying to add more translations to '` + translationsKey + "': ", v)
|
||||||
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"
|
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"
|
||||||
}
|
}
|
||||||
this.contents.set(translationsKey, v)
|
this.contents.set(translationsKey, v)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue