From: moisseev Date: Tue, 19 Sep 2023 05:43:19 +0000 (+0300) Subject: [WebUI] Set locale on UI load X-Git-Tag: 3.7.1~20^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7110535459d497d646a002826a1c2c865a26236f;p=rspamd.git [WebUI] Set locale on UI load Fixes: #4606 --- 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({