mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
hugolib, i18n: Update tests with flat format and TOML files
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
28fdd71c29
commit
6b29bccfee
@@ -1050,8 +1050,8 @@ func createMultiTestSitesForConfig(t *testing.T, siteConfig testSiteConfig, conf
|
||||
if err := afero.WriteFile(mf,
|
||||
filepath.Join("i18n", "en.yaml"),
|
||||
[]byte(`
|
||||
- id: hello
|
||||
translation: "Hello"
|
||||
hello:
|
||||
other: "Hello"
|
||||
`),
|
||||
0755); err != nil {
|
||||
t.Fatalf("Failed to write language file: %s", err)
|
||||
@@ -1059,8 +1059,8 @@ func createMultiTestSitesForConfig(t *testing.T, siteConfig testSiteConfig, conf
|
||||
if err := afero.WriteFile(mf,
|
||||
filepath.Join("i18n", "fr.yaml"),
|
||||
[]byte(`
|
||||
- id: hello
|
||||
translation: "Bonjour"
|
||||
hello:
|
||||
other: "Bonjour"
|
||||
`),
|
||||
0755); err != nil {
|
||||
t.Fatalf("Failed to write language file: %s", err)
|
||||
|
Reference in New Issue
Block a user