aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPerseus-Lynx <[email protected]>2024-12-04 13:48:22 +0000
committerGitHub <[email protected]>2024-12-04 14:48:22 +0100
commit7aceed87b429160d186a8e8270e4572185b6a61f (patch)
treecd5bd5b31eebd3b58c96d28ee4f04c4deb1bf9d6
parent44defe17424ed75b8a229d384702227afd364687 (diff)
downloadmonkeytype-7aceed87b429160d186a8e8270e4572185b6a61f.tar.gz
monkeytype-7aceed87b429160d186a8e8270e4572185b6a61f.zip
fix(language): remove catalan opening punctuation (@Perseus333) (#6035)
-rw-r--r--frontend/src/ts/test/words-generator.ts4
1 files 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 = "";