Skip to content

Commit

Permalink
langs/i18n: Support translation files with suffix *.yml
Browse files Browse the repository at this point in the history
Fixes #8212
  • Loading branch information
bep committed Feb 6, 2021
1 parent d36fd5b commit 92c6c40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions langs/i18n/translationProvider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92c6c40

Please sign in to comment.