Allow querying and changeing i18n language via API.

This commit is contained in:
Eugene Bujak
2018-11-21 20:42:55 +03:00
parent 0530f5dff2
commit 2139bb9c79
4 changed files with 95 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ type configuration struct {
CoreDNS coreDNSConfig `yaml:"coredns"`
Filters []filter `yaml:"filters"`
UserRules []string `yaml:"user_rules"`
Language string `yaml:"language"` // two-letter ISO 639-1 language code
sync.RWMutex `yaml:"-"`
}