From d7012e36bf7516e0e7cdf5b5b447be4bf8a0d4f3 Mon Sep 17 00:00:00 2001 From: uubulb Date: Fri, 1 Nov 2024 14:36:14 +0800 Subject: [PATCH] set c.Language to zh_CN if not specified --- model/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/model/config.go b/model/config.go index a5fadd1..70eb0c2 100644 --- a/model/config.go +++ b/model/config.go @@ -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" }