PLT-1800 Load server side locale from the config.json (#3076)

* PLT-1800 Load server side locale from the config.json

* Add support for locales with country specifics
Этот коммит содержится в:
enahum
2016-05-24 09:36:27 -03:00
коммит произвёл Joram Wilander
родитель 79c0b20689
Коммит 34beaa569b
24 изменённых файлов: 377 добавлений и 51 удалений

Просмотреть файл

@@ -246,7 +246,8 @@ func getClientConfig(c *model.Config) map[string]string {
props["WebsocketPort"] = fmt.Sprintf("%v", *c.ServiceSettings.WebsocketPort)
props["WebsocketSecurePort"] = fmt.Sprintf("%v", *c.ServiceSettings.WebsocketSecurePort)
props["AllowCorsFrom"] = *c.ServiceSettings.AllowCorsFrom
props["DefaultClientLocale"] = *c.LocalizationSettings.DefaultClientLocale
props["AvailableLocales"] = *c.LocalizationSettings.AvailableLocales
if IsLicensed {
if *License.Features.CustomBrand {