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: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4607%2Fhead;p=thirdparty%2Frspamd.git [WebUI] Set locale on UI load Fixes: #4606 --- diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index fd618e6b3f..67b60d973d 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({