1
0
Fork 0
mirror of https://github.com/gohugoio/hugo.git synced 2025-03-28 17:07:11 +00:00

langs/i18n: Support translation files with suffix *.yml

Fixes 
This commit is contained in:
Bjørn Erik Pedersen 2021-02-06 18:12:54 +01:00
parent d36fd5b3ee
commit 92c6c40419
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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