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

Fixes #8212
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
1 changed files with 1 additions and 0 deletions

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