mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
lang/i18n: Fix for language code case issue with pt-br etc.
Fixes #7804
This commit is contained in:
@@ -226,6 +226,18 @@ one = "abc"`),
|
||||
expected: "Show Me The Money",
|
||||
expectedFlag: "Show Me The Money",
|
||||
},
|
||||
// https: //github.com/gohugoio/hugo/issues/7804
|
||||
{
|
||||
name: "lang-with-hyphen",
|
||||
data: map[string][]byte{
|
||||
"pt-br.toml": []byte(`foo.one = "abc"`),
|
||||
},
|
||||
args: 1,
|
||||
lang: "pt-br",
|
||||
id: "foo",
|
||||
expected: "abc",
|
||||
expectedFlag: "abc",
|
||||
},
|
||||
}
|
||||
|
||||
func doTestI18nTranslate(t testing.TB, test i18nTest, cfg config.Provider) string {
|
||||
|
Reference in New Issue
Block a user