mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
committed by
Bjørn Erik Pedersen
parent
93572e5318
commit
58adbeef88
@@ -93,6 +93,11 @@ func addTranslationFile(bundle *i18n.Bundle, r source.File) error {
|
||||
lang := paths.Filename(name)
|
||||
tag := language.Make(lang)
|
||||
if tag == language.Und {
|
||||
try := artificialLangTagPrefix + lang
|
||||
_, err = language.Parse(try)
|
||||
if err != nil {
|
||||
return _errors.Errorf("%q %s.", try, err)
|
||||
}
|
||||
name = artificialLangTagPrefix + name
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user