Improve i18n module.

This commit is contained in:
Andrey Antukh 2020-01-16 19:28:19 +01:00
parent 76e19a4b41
commit 595cdd66c7
10 changed files with 150 additions and 141 deletions

View file

@ -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))