summaryrefslogtreecommitdiffstats
path: root/web/templates
diff options
context:
space:
mode:
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
commit34b461c1b291e701f3a396a9daa622bd4f27fc11 (patch)
treeb161df725183527494a18d420f378647934cd89e /web/templates
parentea6774b2d92712bf4e39eeaf3bcd0a272bb1493a (diff)
downloadchat-34b461c1b291e701f3a396a9daa622bd4f27fc11.tar.gz
chat-34b461c1b291e701f3a396a9daa622bd4f27fc11.tar.bz2
chat-34b461c1b291e701f3a396a9daa622bd4f27fc11.zip
PLT-7 adding loc header
Diffstat (limited to 'web/templates')
-rw-r--r--web/templates/head.html11
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
+ }
});
}