mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02: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 ...")
|
(println "Building ...")
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
(require '[figwheel-sidecar.repl :as r]
|
(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!
|
(ra/start-figwheel!
|
||||||
{:figwheel-options {:css-dirs ["resources/public/css"]}
|
{: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")
|
(b/watch (b/inputs "frontend")
|
||||||
{:main 'uxbox.core
|
{:main 'uxbox.core
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue