diff options
Diffstat (limited to 'langs/i18n/i18n_test.go')
-rw-r--r-- | langs/i18n/i18n_test.go | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/langs/i18n/i18n_test.go b/langs/i18n/i18n_test.go index b1ff748f4..0048d4b1b 100644 --- a/langs/i18n/i18n_test.go +++ b/langs/i18n/i18n_test.go @@ -500,16 +500,7 @@ func newDepsConfig(tp *TranslationProvider, cfg config.Provider, fs *hugofs.Fs) } func getConfig() config.Provider { - v := config.New() - v.Set("defaultContentLanguage", "en") - v.Set("contentDir", "content") - v.Set("dataDir", "data") - v.Set("i18nDir", "i18n") - v.Set("layoutDir", "layouts") - v.Set("archetypeDir", "archetypes") - v.Set("assetDir", "assets") - v.Set("resourceDir", "resources") - v.Set("publishDir", "public") + v := config.NewWithTestDefaults() langs.LoadLanguageSettings(v, nil) mod, err := modules.CreateProjectModule(v) if err != nil { |