commit 7110535: [WebUI] Set locale on UI load
moisseev
moiseev at mezonplus.ru
Tue Sep 19 12:42:03 UTC 2023
Author: moisseev
Date: 2023-09-19 08:43:19 +0300
URL: https://github.com/rspamd/rspamd/commit/7110535459d497d646a002826a1c2c865a26236f (refs/pull/4607/head)
[WebUI] Set locale on UI load
Fixes: #4606
---
interface/js/app/rspamd.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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({
More information about the Commits
mailing list