From 7aceed87b429160d186a8e8270e4572185b6a61f Mon Sep 17 00:00:00 2001 From: Perseus-Lynx Date: Wed, 4 Dec 2024 13:48:22 +0000 Subject: fix(language): remove catalan opening punctuation (@Perseus333) (#6035) --- frontend/src/ts/test/words-generator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/ts/test/words-generator.ts b/frontend/src/ts/test/words-generator.ts index a99fa329f..0b7237800 100644 --- a/frontend/src/ts/test/words-generator.ts +++ b/frontend/src/ts/test/words-generator.ts @@ -54,7 +54,7 @@ export async function punctuateWord( word = word.replace(/I/g, "İ"); } - if (currentLanguage === "spanish" || currentLanguage === "catalan") { + if (currentLanguage === "spanish") { const rand = Math.random(); if (rand > 0.9) { word = "¿" + word; @@ -71,7 +71,7 @@ export async function punctuateWord( index !== maxindex - 2) || index === maxindex - 1 ) { - if (currentLanguage === "spanish" || currentLanguage === "catalan") { + if (currentLanguage === "spanish") { if (spanishSentenceTracker === "?" || spanishSentenceTracker === "!") { word += spanishSentenceTracker; spanishSentenceTracker = ""; -- cgit v1.2.3