toddler.i18n.keyword
This namespace is used for translating words or paragraphs by replacing keyword that is supplied to toddler.i18n/translate
with value that is mapped to keyword and locale
add-locale
(add-locale mapping)
Same as add-translations only format is different
#:default {:some.specific.word "Specific word"
:other.specific.word "Other word"
:nasty.word "Job"
:forbidden.word "Shit"}
add-translations
(add-translations mapping)
Function that will update translations and merge input mapping
with deep merge with current value of translations.
Translations should be in form:
#:some.specific.word {:default "Specific word"
:de "Bestimmtes Wort"
:fr "Mot spécifique"
:es "Palabra específica"}
remove-translations
(remove-translations key locales)
Will remove translations for key and locales
translations
Atom that contains translation mapping