Liking cljdoc? Tell your friends :D

clj-simple-form.i18n

Functions for translating form contents, such as labels.

Functions for translating form contents, such as labels.
raw docstring

*translation-scope*clj


tclj

(t type field)
(t type field default)

Returns a translation of the given type for the field.

Examples

(t :labels :email)
(t :placeholder :name "First Last")
Returns a translation of the given type for the field.

### Examples

    (t :labels :email)
    (t :placeholder :name "First Last")
raw docstring

with-form-translation-scopecljmacro

(with-form-translation-scope object & content)

Sets up a binding for form element translations.

Example

(with-form-translation-scope :profile
  (t :labels :email))
Sets up a binding for form element translations.

### Example

    (with-form-translation-scope :profile
      (t :labels :email))
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close