Skip to content

Commit

Permalink
fix(language): remove catalan opening punctuation (@Perseus333) (#6035)
Browse files Browse the repository at this point in the history
  • Loading branch information
Perseus333 authored Dec 4, 2024
1 parent 44defe1 commit 7aceed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/ts/test/words-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 = "";
Expand Down

0 comments on commit 7aceed8

Please sign in to comment.