mirror of
https://github.com/penpot/penpot.git
synced 2026-02-27 06:43:53 +00:00
🐛 Prevent duplicate locale watcher on hot code reload
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user