hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 92c6c40419bdc13b8bb422a212d1d79240356651
parent d36fd5b3ee6989203de2a29b1de67521fd1c8ea5
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Sat,  6 Feb 2021 18:12:54 +0100

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

Fixes #8212

Diffstat:
Mlangs/i18n/translationProvider.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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