summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-01-25 17:03:29 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-01-26 14:04:14 +0100
commit6413559f7575e2653d76227a8037a7edbaae82aa (patch)
tree4b2d2be2943e1f7c37d6aa09937bec4391c1e678 /config
parent322c567220aa4123a5d707629c1bebd375599912 (diff)
Add a way to disable one or more languages
This commit adds a new config setting: ```toml disableLanguages = ["fr"] ``` If this is a multilingual site: * No site for the French language will be created * French content pages will be ignored/not read * The French language configuration (menus etc.) will also be ignored This makes it possible to start translating new languages and turn it on when you're happy etc. Fixes #4297 Fixed #4329
Diffstat (limited to 'config')
-rw-r--r--config/configProvider.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/configProvider.go b/config/configProvider.go
index 870341f7f..471ce9a1d 100644
--- a/config/configProvider.go
+++ b/config/configProvider.go
@@ -20,6 +20,7 @@ type Provider interface {
GetBool(key string) bool
GetStringMap(key string) map[string]interface{}
GetStringMapString(key string) map[string]string
+ GetStringSlice(key string) []string
Get(key string) interface{}
Set(key string, value interface{})
IsSet(key string) bool