feat: update language handling and frontend template versions

This commit is contained in:
naiba
2024-12-15 17:07:53 +08:00
parent 8381068459
commit 180773a4f3
3 changed files with 9 additions and 5 deletions

View File

@@ -79,12 +79,11 @@ func (c *Config) Read(path string, frontendTemplates []FrontendTemplate) error {
if err != nil {
return err
}
if c.ListenPort == 0 {
c.ListenPort = 8008
}
if c.Language == "" {
c.Language = "zh_CN"
c.Language = "en_US"
}
if c.Location == "" {
c.Location = "Asia/Shanghai"