Liking cljdoc? Tell your friends :D

tyrell.i18n

Main i18n namespace providing translation protocols and core functionality. Based on toddler.i18n but adapted for standalone use.

Main i18n namespace providing translation protocols and core functionality.
Based on toddler.i18n but adapted for standalone use.
raw docstring

*locale*cljs

Dynamic var holding the current locale. Defaults to browser locale if available, otherwise :en.

Dynamic var holding the current locale. 
Defaults to browser locale if available, otherwise :en.
raw docstring

Localecljsprotocol

Protocol for locale-specific information

Protocol for locale-specific information

localecljs

(locale this key)

Returns locale definition for given key

Returns locale definition for given key
raw docstring

localescljs

Vector of all supported locales

Vector of all supported locales
raw docstring

tcljs

(t item)
(t item locale)
(t item locale options)

Translate helper function. Shorthand for translate.

Translate helper function. Shorthand for translate.
raw docstring

Translatorcljsprotocol

Protocol for translating various types of data

Protocol for translating various types of data

translatecljs

(translate this)
(translate this locale)
(translate this locale options)

Translates input data using locale and optional parameters

Translates input data using locale and optional parameters
raw docstring

with-localecljsmacro

(with-locale locale & body)

Execute body with given locale bound

Execute body with given locale bound
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close