mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-30 16:58:38 +00:00
Fix language display name for chinese
This commit is contained in:
parent
2a44e85a30
commit
91441e67bc
1 changed files with 7 additions and 1 deletions
|
@ -88,7 +88,13 @@ function onSubmit(e){
|
|||
selected = " selected=\"selected\"";
|
||||
}
|
||||
string langName = new CultureInfo(lang).DisplayName;
|
||||
if (lang == "en-PT") langName = "Pirate Speak (The Seven Seas)";
|
||||
langName = lang switch
|
||||
{
|
||||
"en-PT" => "Pirate Speak (The Seven Seas)",
|
||||
"zh-CN" => "Simplified Chinese",
|
||||
"zh-TW" => "Traditional Chinese",
|
||||
_ => langName,
|
||||
};
|
||||
<option value="@lang"@selected>@langName</option>
|
||||
}
|
||||
</select>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue