From 6a4166febb5ce386beac8bbb06cd7527b90c6a12 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 8 Oct 2024 19:02:19 +0200 Subject: [PATCH] Fix: reset translations --- langs/en.json | 2 +- langs/layers/ca.json | 12 ++++++------ langs/layers/cs.json | 12 ++++++------ langs/layers/de.json | 12 ++++++------ langs/layers/en.json | 14 ++++++++++---- langs/layers/fr.json | 12 ++++++------ langs/layers/nl.json | 12 ++++++------ scripts/generateTranslations.ts | 3 +++ 8 files changed, 44 insertions(+), 35 deletions(-) diff --git a/langs/en.json b/langs/en.json index 644345f35..ccb74045e 100644 --- a/langs/en.json +++ b/langs/en.json @@ -897,4 +897,4 @@ "startsWithQ": "A wikidata identifier starts with Q and is followed by a number" } } -} +} \ No newline at end of file diff --git a/langs/layers/ca.json b/langs/layers/ca.json index 1212ae08a..15373e975 100644 --- a/langs/layers/ca.json +++ b/langs/layers/ca.json @@ -4315,13 +4315,13 @@ }, "friture-vegan": { "mappings": { - "0": { + "1": { "then": "Hi han snacks vegans disponibles" }, - "1": { + "2": { "then": "Hi ha una petita selecció de snacks vegans disponibles" }, - "2": { + "3": { "then": "No hi ha snacks vegans disponibles" } }, @@ -4329,13 +4329,13 @@ }, "friture-vegetarian": { "mappings": { - "0": { + "1": { "then": "Hi ha snacks vegetarians disponibles" }, - "1": { + "2": { "then": "Només una petita selecció de snacks son vegetarians" }, - "2": { + "3": { "then": "No hi han sacks disponibles" } }, diff --git a/langs/layers/cs.json b/langs/layers/cs.json index 406b9f8cd..56cd2a519 100644 --- a/langs/layers/cs.json +++ b/langs/layers/cs.json @@ -4602,13 +4602,13 @@ }, "friture-vegan": { "mappings": { - "0": { + "1": { "then": "Veganské občerstvení je k dispozici" }, - "1": { + "2": { "then": "K dispozici je malý výběr veganského občerstvení" }, - "2": { + "3": { "then": "Veganské občerstvení není k dispozici" } }, @@ -4616,13 +4616,13 @@ }, "friture-vegetarian": { "mappings": { - "0": { + "1": { "then": "Vegetariánské občerstvení je k dispozici" }, - "1": { + "2": { "then": "Pouze malý výběr občerstvení je vegetariánský" }, - "2": { + "3": { "then": "Vegetariánské občerstvení není k dispozici" } }, diff --git a/langs/layers/de.json b/langs/layers/de.json index a767ad155..07baa8371 100644 --- a/langs/layers/de.json +++ b/langs/layers/de.json @@ -5446,13 +5446,13 @@ }, "friture-vegan": { "mappings": { - "0": { + "1": { "then": "Vegane Snacks sind erhältlich" }, - "1": { + "2": { "then": "Nur eine kleine Auswahl an veganen Snacks ist erhältlich" }, - "2": { + "3": { "then": "Es sind keine veganen Snacks verfügbar" } }, @@ -5460,13 +5460,13 @@ }, "friture-vegetarian": { "mappings": { - "0": { + "1": { "then": "Vegetarische Snacks sind erhältlich" }, - "1": { + "2": { "then": "Nur eine kleine Auswahl an vegetarischen Snacks ist erhältlich" }, - "2": { + "3": { "then": "Es sind keine vegetarischen Snacks erhältlich" } }, diff --git a/langs/layers/en.json b/langs/layers/en.json index 864b1c041..23f1a804f 100644 --- a/langs/layers/en.json +++ b/langs/layers/en.json @@ -5447,12 +5447,15 @@ "friture-vegan": { "mappings": { "0": { - "then": "Vegan snacks are available" + "then": "Serves only vegan snacks and burgers" }, "1": { - "then": "A small selection of vegan snacks are available" + "then": "Vegan snacks are available" }, "2": { + "then": "A small selection of vegan snacks are available" + }, + "3": { "then": "No vegan snacks are available" } }, @@ -5461,12 +5464,15 @@ "friture-vegetarian": { "mappings": { "0": { - "then": "Vegetarian snacks are available" + "then": "Serves only vegetarian snacks and burgers" }, "1": { - "then": "Only a small selection of snacks are vegetarian" + "then": "Vegetarian snacks are available" }, "2": { + "then": "Only a small selection of snacks are vegetarian" + }, + "3": { "then": "No vegetarian snacks are available" } }, diff --git a/langs/layers/fr.json b/langs/layers/fr.json index 0889b7172..ef3a0b46c 100644 --- a/langs/layers/fr.json +++ b/langs/layers/fr.json @@ -3737,13 +3737,13 @@ }, "friture-vegan": { "mappings": { - "0": { + "1": { "then": "Des collations végétaliens sont disponibles" }, - "1": { + "2": { "then": "Quelques snacks végétaliens seulement" }, - "2": { + "3": { "then": "Pas d'en-cas végétaliens disponibles" } }, @@ -3751,13 +3751,13 @@ }, "friture-vegetarian": { "mappings": { - "0": { + "1": { "then": "Des collations végétariens sont disponibles" }, - "1": { + "2": { "then": "Quelques snacks végétariens seulement" }, - "2": { + "3": { "then": "Pas d'en-cas végétariens disponibles" } }, diff --git a/langs/layers/nl.json b/langs/layers/nl.json index 3208a2e5a..b23b74540 100644 --- a/langs/layers/nl.json +++ b/langs/layers/nl.json @@ -4497,13 +4497,13 @@ }, "friture-vegan": { "mappings": { - "0": { + "1": { "then": "Er zijn veganistische snacks aanwezig" }, - "1": { + "2": { "then": "Slechts enkele veganistische snacks" }, - "2": { + "3": { "then": "Geen veganistische snacks beschikbaar" } }, @@ -4511,13 +4511,13 @@ }, "friture-vegetarian": { "mappings": { - "0": { + "1": { "then": "Er zijn vegetarische snacks aanwezig" }, - "1": { + "2": { "then": "Slechts enkele vegetarische snacks" }, - "2": { + "3": { "then": "Geen vegetarische snacks beschikbaar" } }, diff --git a/scripts/generateTranslations.ts b/scripts/generateTranslations.ts index 0bde6e9ee..23097aaa6 100644 --- a/scripts/generateTranslations.ts +++ b/scripts/generateTranslations.ts @@ -49,6 +49,9 @@ class TranslationPart { } for (const translationsKey in translations) { const v = translations[translationsKey] + if(Array.isArray(v) && context .endsWith("keywords")){ + continue + } if (typeof v != "string") { console.error( `Non-string object at ${context} in translation while trying to add the translation ` +