set c.Language to zh_CN if not specified

This commit is contained in:
uubulb
2024-11-01 14:36:14 +08:00
parent 96bec45855
commit 48512087b1
+3
View File
@@ -62,6 +62,9 @@ func (c *Config) Read(path string) error {
if c.ListenPort == 0 {
c.ListenPort = 8008
}
if c.Language == "" {
c.Language = "zh_CN"
}
if c.Location == "" {
c.Location = "Asia/Shanghai"
}