summaryrefslogtreecommitdiffstats
path: root/langs/i18n
diff options
context:
space:
mode:
Diffstat (limited to 'langs/i18n')
-rw-r--r--langs/i18n/i18n_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/langs/i18n/i18n_test.go b/langs/i18n/i18n_test.go
index 18c122010..be20ca3c8 100644
--- a/langs/i18n/i18n_test.go
+++ b/langs/i18n/i18n_test.go
@@ -28,7 +28,6 @@ import (
"github.com/gohugoio/hugo/langs"
"github.com/gohugoio/hugo/resources/page"
"github.com/spf13/afero"
- "github.com/spf13/viper"
"github.com/gohugoio/hugo/deps"
@@ -500,9 +499,9 @@ func newDepsConfig(tp *TranslationProvider, cfg config.Provider, fs *hugofs.Fs)
}
}
-func getConfig() *viper.Viper {
- v := viper.New()
- v.SetDefault("defaultContentLanguage", "en")
+func getConfig() config.Provider {
+ v := config.New()
+ v.Set("defaultContentLanguage", "en")
v.Set("contentDir", "content")
v.Set("dataDir", "data")
v.Set("i18nDir", "i18n")