mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
feat: add i18n support
This commit is contained in:
@@ -63,9 +63,10 @@ func updateConfig(c *gin.Context) (any, error) {
|
||||
singleton.Conf.CustomCodeDashboard = sf.CustomCodeDashboard
|
||||
|
||||
if err := singleton.Conf.Save(); err != nil {
|
||||
return nil, err
|
||||
return nil, newGormError("%v", err)
|
||||
}
|
||||
|
||||
singleton.OnNameserverUpdate()
|
||||
singleton.OnUpdateLang(singleton.Conf.Language)
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user