mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 20:58:14 -05:00
set c.Language to zh_CN if not specified
This commit is contained in:
parent
ca997cc994
commit
d7012e36bf
@ -62,6 +62,9 @@ func (c *Config) Read(path string) error {
|
|||||||
if c.ListenPort == 0 {
|
if c.ListenPort == 0 {
|
||||||
c.ListenPort = 8008
|
c.ListenPort = 8008
|
||||||
}
|
}
|
||||||
|
if c.Language == "" {
|
||||||
|
c.Language = "zh_CN"
|
||||||
|
}
|
||||||
if c.Location == "" {
|
if c.Location == "" {
|
||||||
c.Location = "Asia/Shanghai"
|
c.Location = "Asia/Shanghai"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user