mirror of
https://github.com/penpot/penpot.git
synced 2025-05-16 02:27:42 +02:00
✨ Improve i18n module.
This commit is contained in:
parent
76e19a4b41
commit
595cdd66c7
10 changed files with 150 additions and 141 deletions
|
@ -30,15 +30,13 @@
|
|||
;; --- i18n
|
||||
|
||||
(declare reinit)
|
||||
(rx/sub! i18n/locale-sub #(reinit))
|
||||
;; (rx/sub! i18n/locale-sub #(reinit))
|
||||
|
||||
;; --- Error Handling
|
||||
|
||||
(defn- on-navigate
|
||||
[router path]
|
||||
(let [match (rt/match router path)]
|
||||
(prn "main$on-navigate" path)
|
||||
|
||||
(cond
|
||||
(and (= path "") (:auth storage))
|
||||
(st/emit! (rt/nav :dashboard-projects))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue