diff options
author | Albert Nigmatzianov <albertnigma@gmail.com> | 2017-04-01 22:36:07 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-04-02 18:43:32 +0200 |
commit | 6b29bccfeec75172bed66285a7d20ff73bd67b25 (patch) | |
tree | a749b555d852fe4840fcd50dcc2e5c55f85cdd66 /hugolib | |
parent | 28fdd71c29a9fec3ddfd7628b98eb713aea673ec (diff) |
hugolib, i18n: Update tests with flat format and TOML files
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/hugo_sites_build_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/hugo_sites_build_test.go b/hugolib/hugo_sites_build_test.go index b5eac857c..80f4d5cc4 100644 --- a/hugolib/hugo_sites_build_test.go +++ b/hugolib/hugo_sites_build_test.go @@ -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) |