mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 10:38:13 -05:00
🐛 Fix unexpected exception on i18n autodetect code
This commit is contained in:
parent
4088e55c9f
commit
cd8578480f
1 changed files with 2 additions and 2 deletions
|
@ -90,9 +90,9 @@
|
|||
|
||||
(swap! storage assoc ::locale lname)
|
||||
(reset! locale lname))
|
||||
(let [locale (autodetect)]
|
||||
(let [lname (autodetect)]
|
||||
(swap! storage dissoc ::locale)
|
||||
(reset! locale locale))))
|
||||
(reset! locale lname))))
|
||||
|
||||
(defn reset-locale
|
||||
"Set the current locale to the browser detected one if it is
|
||||
|
|
Loading…
Add table
Reference in a new issue