mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-14 04:20:00 -04:00
Replace hyphen with underscore for american english locale
This commit is contained in:
parent
68a8be1427
commit
7f6b5638de
1 changed files with 5 additions and 5 deletions
|
@ -11,14 +11,14 @@ loading...
|
|||
try {
|
||||
let parsed = JSON.parse(currentLang).value;
|
||||
switch (parsed) {
|
||||
case "en-US":
|
||||
redirect("/en-US/");
|
||||
case "en_US":
|
||||
redirect("/en_US/");
|
||||
break;
|
||||
case "jp":
|
||||
redirect("/jp/");
|
||||
break;
|
||||
default:
|
||||
redirect("/en-US/");
|
||||
redirect("/en_US/");
|
||||
break;
|
||||
}
|
||||
} catch {
|
||||
|
@ -32,9 +32,9 @@ loading...
|
|||
} else {
|
||||
localStorage.setItem(
|
||||
"selectedLanguage",
|
||||
JSON.stringify({ value: "en-US" })
|
||||
JSON.stringify({ value: "en_US" })
|
||||
);
|
||||
redirect("/en-US/");
|
||||
redirect("/en_US/");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue