Fix: reset translations

This commit is contained in:
Pieter Vander Vennet 2024-10-08 19:02:19 +02:00
parent f8ef32f123
commit 6a4166febb
8 changed files with 44 additions and 35 deletions

View file

@ -897,4 +897,4 @@
"startsWithQ": "A wikidata identifier starts with Q and is followed by a number"
}
}
}
}

View file

@ -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"
}
},

View file

@ -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"
}
},

View file

@ -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"
}
},

View file

@ -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"
}
},

View file

@ -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"
}
},

View file

@ -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"
}
},

View file

@ -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 ` +