diff options
Diffstat (limited to 'model/config.go')
-rw-r--r-- | model/config.go | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/model/config.go b/model/config.go index 0afc01750..640d8d51e 100644 --- a/model/config.go +++ b/model/config.go @@ -6,7 +6,6 @@ package model import ( "encoding/json" "io" - "strings" ) const ( @@ -39,16 +38,6 @@ const ( RESTRICT_EMOJI_CREATION_ADMIN = "system_admin" ) -// should match the values in webapp/i18n/i18n.jsx -var LOCALES = []string{ - "de", - "en", - "es", - "fr", - "ja", - "pt-BR", -} - type ServiceSettings struct { ListenAddress string MaximumLoginAttempts int @@ -608,7 +597,7 @@ func (o *Config) SetDefaults() { if o.LocalizationSettings.AvailableLocales == nil { o.LocalizationSettings.AvailableLocales = new(string) - *o.LocalizationSettings.AvailableLocales = strings.Join(LOCALES, ",") + *o.LocalizationSettings.AvailableLocales = "" } } |