mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
tpl: Make it more clear on missing language string
This commit is contained in:
@@ -78,7 +78,9 @@ func SetI18nTfuncs(bndl *bundle.Bundle) {
|
||||
i18nWarningLogger.Printf("i18n|MISSING_TRANSLATION|%s|%s", currentLang, translationID)
|
||||
}
|
||||
if defaultT != nil {
|
||||
return defaultT(translationID, args...)
|
||||
if translated := defaultT(translationID, args...); translated != translationID {
|
||||
return translated
|
||||
}
|
||||
}
|
||||
return fmt.Sprintf("[i18n] %s", translationID)
|
||||
}
|
||||
|
Reference in New Issue
Block a user