소스 검색

sk station name gen fix

marek 1 개월 전
부모
커밋
7a0d1f3da3
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      lang/sk.js

+ 4 - 4
lang/sk.js

@@ -153,11 +153,11 @@ const general = {
 
     // Handle Slovak grammar
     if (gender === "f") {
-      finalAdjective = randomAdjective.replace(/[ýí]$/, "á");
-      finalAdjective = randomAdjective.replace(/[yi]$/, "a");
+      finalAdjective = finalAdjective.replace(/[ýí]$/, "á");
+      finalAdjective = finalAdjective.replace(/[yi]$/, "a");
     } else if (gender === "n") {
-      finalAdjective = randomAdjective.replace(/[ýí]$/, "é");
-      finalAdjective = randomAdjective.replace(/[yi]$/, "e");
+      finalAdjective = finalAdjective.replace(/[ýí]$/, "é");
+      finalAdjective = finalAdjective.replace(/[yi]$/, "e");
     }
 
     // Capitalize first letters and return