增加多语言支持

This commit is contained in:
2026-07-06 16:52:04 +08:00
parent 1e3db0a724
commit 1f1794fcc7
11 changed files with 511 additions and 83 deletions
+2
View File
@@ -18,6 +18,7 @@ type AppConfig struct {
CloseToTray bool `yaml:"close_to_tray"`
DefaultProfileID int64 `yaml:"default_profile_id"`
LogLevel string `yaml:"log_level"` // debug, info, warn, error
Language string `yaml:"language"` // "", "auto", "en", "zh-Hans"
}
// Default returns the default configuration.
@@ -28,6 +29,7 @@ func Default() AppConfig {
CloseToTray: true,
DefaultProfileID: 0,
LogLevel: "info",
Language: "", // empty = auto-detect from OS
}
}