set c.Language to zh_CN if not specified

This commit is contained in:
uubulb committed 2024-11-01 14:36:14 +08:00
1 parent ca997cc994
commit d7012e36bf
1 file changed
+3
+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"
}