mirror of
https://github.com/penpot/penpot.git
synced 2025-05-09 08:05:54 +02:00
✨ Tempory enable full rerender on lang change.
Until all components starts using i18n/use-translations hook.
This commit is contained in:
parent
f7838601e6
commit
41b465f444
1 changed files with 1 additions and 9 deletions
|
@ -29,15 +29,7 @@
|
||||||
(declare reinit)
|
(declare reinit)
|
||||||
(s/check-asserts true)
|
(s/check-asserts true)
|
||||||
|
|
||||||
;; (i18n/update-locales! (fn [locales]
|
(rx/sub! i18n/locale-sub #(reinit))
|
||||||
;; (-> locales
|
|
||||||
;; (assoc "en" en/locales)
|
|
||||||
;; (assoc "fr" fr/locales))))
|
|
||||||
|
|
||||||
;; (i18n/on-locale-change!
|
|
||||||
;; (fn [new old]
|
|
||||||
;; (println "Locale changed from" old " to " new)
|
|
||||||
;; (reinit)))
|
|
||||||
|
|
||||||
;; --- Error Handling
|
;; --- Error Handling
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue