From 7110535459d497d646a002826a1c2c865a26236f Mon Sep 17 00:00:00 2001 From: moisseev Date: Tue, 19 Sep 2023 08:43:19 +0300 Subject: [PATCH] [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({ -- 2.39.5