Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/langs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-02-06 20:12:54 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-02-06 20:12:54 +0300
commit92c6c40419bdc13b8bb422a212d1d79240356651 (patch)
treed02f0e4ceb2b2df914d5a8a106a305016c49ee50 /langs
parentd36fd5b3ee6989203de2a29b1de67521fd1c8ea5 (diff)
langs/i18n: Support translation files with suffix *.yml
Fixes #8212
Diffstat (limited to 'langs')
-rw-r--r--langs/i18n/translationProvider.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/langs/i18n/translationProvider.go b/langs/i18n/translationProvider.go
index 302ca84c6..e34df7e97 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