From 41b465f444c53dfcb9e56e699a1773163c33256c Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sat, 11 Jan 2020 18:41:27 +0100 Subject: [PATCH] :sparkles: Tempory enable full rerender on lang change. Until all components starts using i18n/use-translations hook. --- frontend/src/uxbox/main.cljs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/frontend/src/uxbox/main.cljs b/frontend/src/uxbox/main.cljs index 679c0ead8..2902cfe37 100644 --- a/frontend/src/uxbox/main.cljs +++ b/frontend/src/uxbox/main.cljs @@ -29,15 +29,7 @@ (declare reinit) (s/check-asserts true) -;; (i18n/update-locales! (fn [locales] -;; (-> locales -;; (assoc "en" en/locales) -;; (assoc "fr" fr/locales)))) - -;; (i18n/on-locale-change! -;; (fn [new old] -;; (println "Locale changed from" old " to " new) -;; (reinit))) +(rx/sub! i18n/locale-sub #(reinit)) ;; --- Error Handling