mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-12-10 08:51:34 +08:00
Add Command Version Control
Add more comments(zh) Optimize code structure Update the loading order to avoid repeated loading to optimize startup speed.
This commit is contained in:
@@ -23,14 +23,20 @@ namespace GrasscutterTools
|
||||
{
|
||||
internal static class MultiLanguage
|
||||
{
|
||||
public static string DefaultLanguage = "zh-CN";
|
||||
/// <summary>
|
||||
/// 语言名称列表
|
||||
/// </summary>
|
||||
public static readonly string[] LanguageNames = new string[] { "简体中文", "繁體中文", "English", "Русский" };
|
||||
|
||||
/// <summary>
|
||||
/// 语言代码列表
|
||||
/// </summary>
|
||||
public static readonly string[] Languages = new string[] { "zh-CN", "zh-TW", "en-US", "ru-RU" };
|
||||
|
||||
public static void SetDefaultLanguage(string lang)
|
||||
{
|
||||
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(lang);
|
||||
DefaultLanguage = lang;
|
||||
Properties.Settings.Default.DefaultLanguage = lang;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user