summaryrefslogtreecommitdiffstats
path: root/web/templates
diff options
context:
space:
mode:
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
+ }
});
}