mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
feat: enhance game language support in settings
- Added documentation for mapping system CultureInfo names to Minecraft game language codes. - Included support for Tagalog (tl and tl-PH) language codes in the game settings.
This commit is contained in:
parent
0445d95c23
commit
ad065225ba
1 changed files with 13 additions and 0 deletions
|
|
@ -1838,6 +1838,15 @@ namespace MinecraftClient
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Map the system CultureInfo name to a Minecraft game language code.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Culture name reference (language-COUNTRY):
|
||||
/// https://learn.microsoft.com/en-us/previous-versions/commerce-server/ee797784(v=cs.20)
|
||||
/// Full LCID / language-tag spec (MS-LCID, includes fil-PH, nb-NO, etc.):
|
||||
/// https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid/70feba9f-294e-491e-b6eb-56532684c37f
|
||||
/// </remarks>
|
||||
public static string GetDefaultGameLanguage()
|
||||
{
|
||||
string gameLanguage = "en_us";
|
||||
|
|
@ -1997,6 +2006,10 @@ namespace MinecraftClient
|
|||
case "fil-PH":
|
||||
gameLanguage = "fil_ph";
|
||||
break;
|
||||
case "tl":
|
||||
case "tl-PH":
|
||||
gameLanguage = "tl_ph";
|
||||
break;
|
||||
case "fo":
|
||||
case "fo-FO":
|
||||
gameLanguage = "fo_fo";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue