Skip to content

Commit a06400f

Browse files
Improvement to the language checker service (lang.js).
1 parent 83c03c0 commit a06400f

File tree

1 file changed

+1
-1
lines changed
  • assets/WS_Service/LangService

1 file changed

+1
-1
lines changed

assets/WS_Service/LangService/lang.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ else if (lang.startsWith("en"))
77
{
88
document.location.href = "/WS_Pages/EN/mainpage";
99
}
10-
else if (lang != "en-EN" | lang != "en" | lang != "en_US" | lang != "en-US" | lang != "tr-TR" | lang != "tr" | lang != "tr_TR")
10+
else if (!lang.startsWith("en") && !lang.startsWith("tr"))
1111
{
1212
alert("You are outside the TR or EN region. Support for languages of other countries has not been introduced.");
1313
console.log("[linuxuserslinuxmint.github.io]: You are outside the TR or EN region. Support for languages of other countries has not been introduced.");

0 commit comments

Comments
 (0)