From f51e35aa9ce20d3346f8e06e13c3d42e5c2e230b Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 20 Oct 2022 00:11:20 +0200 Subject: [PATCH] :bug: Prevent duplicate locale watcher on hot code reload --- frontend/src/app/util/i18n.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/util/i18n.cljs b/frontend/src/app/util/i18n.cljs index 5241b6c28..97bfedd93 100644 --- a/frontend/src/app/util/i18n.cljs +++ b/frontend/src/app/util/i18n.cljs @@ -105,7 +105,7 @@ (swap! storage dissoc ::locale) (reset! locale (autodetect))) -(add-watch locale ::browser-font +(add-watch locale "browser-font" (fn [_ _ _ locale] (log/info :hint "locale changed" :locale locale) (dom/set-html-lang! locale)