From: Bjørn Erik Pedersen Date: Sat, 6 Feb 2021 17:12:54 +0000 (+0100) Subject: langs/i18n: Support translation files with suffix *.yml X-Git-Tag: v0.81.0~41 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=92c6c40419bdc13b8bb422a212d1d79240356651;p=brevno-suite%2Fhugo langs/i18n: Support translation files with suffix *.yml Fixes #8212 --- diff --git a/langs/i18n/translationProvider.go b/langs/i18n/translationProvider.go index 302ca84c..e34df7e9 100644 --- a/langs/i18n/translationProvider.go +++ b/langs/i18n/translationProvider.go @@ -49,6 +49,7 @@ func (tp *TranslationProvider) Update(d *deps.Deps) error { bundle := i18n.NewBundle(language.English) bundle.RegisterUnmarshalFunc("toml", toml.Unmarshal) bundle.RegisterUnmarshalFunc("yaml", yaml.Unmarshal) + bundle.RegisterUnmarshalFunc("yml", yaml.Unmarshal) bundle.RegisterUnmarshalFunc("json", json.Unmarshal) // The source dirs are ordered so the most important comes first. Since this is a