set c.Language to zh_CN if not specified

This commit is contained in:
uubulb 2024-11-01 14:36:14 +08:00
parent ca997cc994
commit d7012e36bf

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"
}