Liking cljdoc? Tell your friends :D

wagoe.i18n.core.translate

Pure translation functions for the i18n module.

FC/IS rule: PURE functions only — no I/O, no logging, no exceptions.

Translation key resolution order (locale chain):

  1. User locale (e.g. :nl)
  2. Tenant locale (e.g. :nl)
  3. Default locale (:en)
  4. Fallback: (str key) for graceful degradation

Marker syntax: [:t :key] — simple lookup [:t :key {:param val}] — with interpolation params [:t :key {:n 3} 3] — plural form (count as 4th arg)

Pure translation functions for the i18n module.

FC/IS rule: PURE functions only — no I/O, no logging, no exceptions.

Translation key resolution order (locale chain):
  1. User locale (e.g. :nl)
  2. Tenant locale (e.g. :nl)
  3. Default locale (:en)
  4. Fallback: (str key) for graceful degradation

Marker syntax:
  [:t :key]                   — simple lookup
  [:t :key {:param val}]      — with interpolation params
  [:t :key {:n 3} 3]          — plural form (count as 4th arg)
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