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

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

* Add support for locales with country specifics

* Fix localization on served locale file as plain/text
Этот коммит содержится в:
enahum
2016-05-27 09:25:37 -03:00
коммит произвёл Joram Wilander
родитель 15e427e806
Коммит a2c183f401
24 изменённых файлов: 396 добавлений и 66 удалений

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

@@ -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 {