diff options
Diffstat (limited to 'langs/config.go')
-rw-r--r-- | langs/config.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/langs/config.go b/langs/config.go index fe4ed9d14..f79b7dd0a 100644 --- a/langs/config.go +++ b/langs/config.go @@ -161,6 +161,12 @@ func LoadLanguageSettings(cfg config.Provider, oldLangs Languages) (c LanguagesC } } + for _, language := range c.Languages { + if language.initErr != nil { + return c, language.initErr + } + } + return c, nil } @@ -197,6 +203,10 @@ func toSortedLanguages(cfg config.Provider, l map[string]interface{}) (Languages for k, vv := range m { language.SetParam(k, vv) } + case "timezone": + if err := language.loadLocation(cast.ToString(v)); err != nil { + return nil, err + } } // Put all into the Params map |