diff --git a/UI/Input/ValidatedTextField.ts b/UI/Input/ValidatedTextField.ts index 594b9fdf0e..865391ef29 100644 --- a/UI/Input/ValidatedTextField.ts +++ b/UI/Input/ValidatedTextField.ts @@ -364,8 +364,12 @@ Another example is to search for species and trees: Locale.language .map((lg) => { - const prefixesUnrwapped: string[] = prefixes[lg] ?? prefixes - const postfixesUnwrapped: string[] = postfixes[lg] ?? postfixes + const prefixesUnrwapped: string[] = Array.isArray(prefixes) + ? prefixes + : prefixes[lg] ?? [] + const postfixesUnwrapped: string[] = Array.isArray(postfixes) + ? postfixes + : postfixes[lg] ?? [] let clipped = searchFor for (const postfix of postfixesUnwrapped) { @@ -375,6 +379,7 @@ Another example is to search for species and trees: } } + console.log("Prefixes are: ", prefixesUnrwapped) for (const prefix of prefixesUnrwapped) { if (searchFor.startsWith(prefix)) { clipped = searchFor.substring(prefix.length) diff --git a/langs/ca.json b/langs/ca.json index b626a31723..3e35b834dc 100644 --- a/langs/ca.json +++ b/langs/ca.json @@ -112,7 +112,7 @@ "backgroundMap": "Mapa de fons", "cancel": "Cancel·lar", "confirm": "Confirmar", - "customThemeIntro": "