mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
tpl: Set i18n bundle once per test run
No real practical difference, but more clear.
This commit is contained in:
parent
6e692f2d11
commit
2105e42aca
1 changed files with 1 additions and 1 deletions
|
@ -34,9 +34,9 @@ func doTestI18nTranslate(t *testing.T, data []test, lang, id string) string {
|
|||
if err != nil {
|
||||
t.Errorf("Error parsing translation file: %s", err)
|
||||
}
|
||||
SetI18nTfuncs(i18nBundle)
|
||||
}
|
||||
|
||||
SetI18nTfuncs(i18nBundle)
|
||||
SetTranslateLang(lang)
|
||||
|
||||
translated, err := I18nTranslate(id, nil)
|
||||
|
|
Loading…
Reference in a new issue