aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2023-09-19 08:43:19 +0300
committermoisseev <moiseev@mezonplus.ru>2023-09-19 08:43:19 +0300
commit7110535459d497d646a002826a1c2c865a26236f (patch)
tree1145cd70ee9e430a3e5cb1f99d42786edebe21c7 /interface
parente879458ea89ce76226c12078d05632f67bc657fe (diff)
downloadrspamd-7110535459d497d646a002826a1c2c865a26236f.tar.gz
rspamd-7110535459d497d646a002826a1c2c865a26236f.zip
[WebUI] Set locale on UI load
Fixes: #4606
Diffstat (limited to 'interface')
-rw-r--r--interface/js/app/rspamd.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js
index fd618e6b3..67b60d973 100644
--- a/interface/js/app/rspamd.js
+++ b/interface/js/app/rspamd.js
@@ -59,7 +59,7 @@ function ($, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_config,
var neighbours = []; // list of clusters
var checked_server = "All SERVERS";
var timer_id = [];
- var locale = null;
+ var locale = (localStorage.getItem("selected_locale") === "custom") ? localStorage.getItem("custom_locale") : null;
var selData = null; // Graph's dataset selector state
NProgress.configure({