chore: translate Chinese strings to English across repository

This commit is contained in:
2025-12-23 09:52:55 +01:00
parent 4590d46e17
commit ce649f0e18
15 changed files with 99 additions and 59 deletions

View File

@@ -15,12 +15,12 @@ type Config struct {
func (config *Config) Read(path string) {
data, err := os.ReadFile(path)
if err != nil {
logger.Error.Printf("配置文件读取失败: %s%s%s", logger.Red, err, logger.Reset)
logger.Error.Printf("Failed to read configuration file: %s%s%s", logger.Red, err, logger.Reset)
os.Exit(0)
}
err = json.Unmarshal(data, &config)
if err != nil {
logger.Error.Printf("配置文件读取失败: %s%s%s", logger.Red, err, logger.Reset)
logger.Error.Printf("Failed to read configuration file: %s%s%s", logger.Red, err, logger.Reset)
os.Exit(0)
}
config.Verify()