diff options
author | Bjørn Erik Pedersen <[email protected]> | 2021-07-28 12:28:52 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2021-07-29 16:40:06 +0200 |
commit | 7907d24ba16fc5a80930c1aabf5144e684ff7f29 (patch) | |
tree | 7f4a9500a0167f4ea5b9c41a1113288ffb8f1c95 /langs | |
parent | 726fe9c3c97a9c979dc7862e7f226fc5ec1341de (diff) | |
download | hugo-7907d24ba16fc5a80930c1aabf5144e684ff7f29.tar.gz hugo-7907d24ba16fc5a80930c1aabf5144e684ff7f29.zip |
tpl/lang: Add new localized versions of lang.FormatNumber etc.
Fixes #8820
Diffstat (limited to 'langs')
-rw-r--r-- | langs/language.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/langs/language.go b/langs/language.go index 6f39848cf..758729c25 100644 --- a/langs/language.go +++ b/langs/language.go @@ -97,11 +97,11 @@ func NewLanguage(lang string, cfg config.Provider) *Language { localCfg := config.New() compositeConfig := config.NewCompositeConfig(cfg, localCfg) - translator := translators.Get(lang) + translator := translators.GetTranslator(lang) if translator == nil { - translator = translators.Get(cfg.GetString("defaultContentLanguage")) + translator = translators.GetTranslator(cfg.GetString("defaultContentLanguage")) if translator == nil { - translator = translators.Get("en") + translator = translators.GetTranslator("en") } } |