diff options
author | =Corey Hulen <corey@hulen.com> | 2016-01-22 10:33:41 -0600 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-01-22 10:33:41 -0600 |
commit | 34b461c1b291e701f3a396a9daa622bd4f27fc11 (patch) | |
tree | b161df725183527494a18d420f378647934cd89e /web | |
parent | ea6774b2d92712bf4e39eeaf3bcd0a272bb1493a (diff) | |
download | chat-34b461c1b291e701f3a396a9daa622bd4f27fc11.tar.gz chat-34b461c1b291e701f3a396a9daa622bd4f27fc11.tar.bz2 chat-34b461c1b291e701f3a396a9daa622bd4f27fc11.zip |
PLT-7 adding loc header
Diffstat (limited to 'web')
-rw-r--r-- | web/templates/head.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/web/templates/head.html b/web/templates/head.html index 03dbff331..4060d2410 100644 --- a/web/templates/head.html +++ b/web/templates/head.html @@ -75,7 +75,16 @@ if ({{.SessionTokenIndex}} >= 0) { window.mm_session_token_index = {{.SessionTokenIndex}}; $.ajaxSetup({ - headers: { 'X-MM-TokenIndex': mm_session_token_index } + headers: { + 'X-MM-TokenIndex': mm_session_token_index, + 'Accept-Language': mm_locale + } + }); + } else { + $.ajaxSetup({ + headers: { + 'Accept-Language': mm_locale + } }); } |