mirror of
https://github.com/penpot/penpot.git
synced 2025-04-09 21:41:23 -05:00
Add reader macro #ux/tr for simple translation strings.
This commit is contained in:
parent
241557f936
commit
0f41481580
3 changed files with 15 additions and 3 deletions
|
@ -1,4 +1,8 @@
|
|||
(require '[cljs.build.api :as b])
|
||||
(require '[cljs.build.api :as b]
|
||||
'[cljs.tagged-literals])
|
||||
|
||||
(alter-var-root #'cljs.tagged-literals/*cljs-data-readers*
|
||||
assoc 'ux/tr (fn [v] `(uxbox.locales/tr ~v)))
|
||||
|
||||
(println "Building ...")
|
||||
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
(require '[figwheel-sidecar.repl :as r]
|
||||
'[figwheel-sidecar.repl-api :as ra])
|
||||
'[figwheel-sidecar.repl-api :as ra]
|
||||
'[cljs.tagged-literals])
|
||||
|
||||
(alter-var-root #'cljs.tagged-literals/*cljs-data-readers*
|
||||
assoc 'ux/tr (fn [v] `(uxbox.locales/tr ~v)))
|
||||
|
||||
(ra/start-figwheel!
|
||||
{:figwheel-options {:css-dirs ["resources/public/css"]}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
(require '[cljs.build.api :as b])
|
||||
(require '[cljs.build.api :as b]
|
||||
'[cljs.tagged-literals])
|
||||
|
||||
(alter-var-root #'cljs.tagged-literals/*cljs-data-readers*
|
||||
assoc 'ux/tr (fn [v] `(uxbox.locales/tr ~v)))
|
||||
|
||||
(b/watch (b/inputs "frontend")
|
||||
{:main 'uxbox.core
|
||||
|
|
Loading…
Add table
Reference in a new issue