From 686fb29ed392d2d4c969b7bf7ccee2c99972ee0d Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Thu, 6 Jan 2022 15:46:21 +0100 Subject: [PATCH] Fix translations --- langs/themes/de.json | 2 +- scripts/generateTranslations.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/langs/themes/de.json b/langs/themes/de.json index f29c4f65a..47f261290 100644 --- a/langs/themes/de.json +++ b/langs/themes/de.json @@ -841,7 +841,7 @@ }, "grb": { "layers": { - "1": { + "2": { "tagRenderings": { "building type": { "question": "Was ist das für ein Gebäude?" diff --git a/scripts/generateTranslations.ts b/scripts/generateTranslations.ts index 9137ca84a..ccb7dffa1 100644 --- a/scripts/generateTranslations.ts +++ b/scripts/generateTranslations.ts @@ -36,7 +36,7 @@ class TranslationPart { } const v = translations[translationsKey] 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" } this.contents.set(translationsKey, v)