mirror of
https://github.com/penpot/penpot.git
synced 2025-02-20 22:06:07 -05:00
Add some annotations on locales api.
This commit is contained in:
parent
a264cea1d6
commit
63e5e68fc6
1 changed files with 5 additions and 0 deletions
|
@ -17,6 +17,9 @@
|
||||||
(defonce +locale+
|
(defonce +locale+
|
||||||
(get local-storage ::locale :en))
|
(get local-storage ::locale :en))
|
||||||
|
|
||||||
|
;; A marker type that is used just for mark
|
||||||
|
;; a parameter that reprsentes the counter.
|
||||||
|
|
||||||
(deftype C [val]
|
(deftype C [val]
|
||||||
IDeref
|
IDeref
|
||||||
(-deref [o] val))
|
(-deref [o] val))
|
||||||
|
@ -29,6 +32,8 @@
|
||||||
[r]
|
[r]
|
||||||
(instance? C r))
|
(instance? C r))
|
||||||
|
|
||||||
|
;; A main public api for translate strings.
|
||||||
|
|
||||||
(defn tr
|
(defn tr
|
||||||
"Translate the string."
|
"Translate the string."
|
||||||
([t]
|
([t]
|
||||||
|
|
Loading…
Add table
Reference in a new issue