Protocol definitions for the i18n module.
FC/IS rule: protocols are interfaces — no implementation here. Adapters (shell layer) implement these protocols.
Protocol definitions for the i18n module. FC/IS rule: protocols are interfaces — no implementation here. Adapters (shell layer) implement these protocols.
Contract for translation catalogue adapters.
The default implementation (MapCatalogue) wraps EDN maps loaded from classpath resources. Custom implementations can back the catalogue with a database, remote service, etc.
Contract for translation catalogue adapters. The default implementation (MapCatalogue) wraps EDN maps loaded from classpath resources. Custom implementations can back the catalogue with a database, remote service, etc.
(available-locales this)Return set of locale keywords that have at least one entry.
Returns: Set of keywords, e.g. #{:en :nl}
Return set of locale keywords that have at least one entry.
Returns:
Set of keywords, e.g. #{:en :nl}(lookup this locale key)Look up a single key for a locale.
Args: locale - keyword identifying the locale (e.g. :en, :nl) key - keyword translation key (e.g. :user/sign-in)
Returns: String translation, or nil if not found.
Look up a single key for a locale. Args: locale - keyword identifying the locale (e.g. :en, :nl) key - keyword translation key (e.g. :user/sign-in) Returns: String translation, or nil if not found.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |