Liking cljdoc? Tell your friends :D

metabase.util.i18n


available-locales-with-namesclj

(available-locales-with-names)

Returns all locale abbreviations and their full names

Returns all locale abbreviations and their full names
sourceraw docstring

ex-infoclj

(ex-info msg ex-data-map)
(ex-info msg ex-data-map cause)

Just like clojure.core/ex-info but it is i18n-aware. It will call str on msg and walk ex-data converting any SystemLocalizedString and UserLocalizedStrings to a regular string

Just like `clojure.core/ex-info` but it is i18n-aware. It will call `str` on `msg` and walk `ex-data` converting any
`SystemLocalizedString` and `UserLocalizedString`s to a regular string
sourceraw docstring

localized-string?clj

(localized-string? maybe-a-localized-string)

Returns true if maybe-a-localized-string is a system or user localized string instance

Returns `true` if `maybe-a-localized-string` is a system or user localized string instance
sourceraw docstring

localized-strings->stringsclj

(localized-strings->strings x)

Walks the datastructure x and converts any localized strings to regular string

Walks the datastructure `x` and converts any localized strings to regular string
sourceraw docstring

LocalizedStringclj

Schema for user and system localized string instances

Schema for user and system localized string instances
sourceraw docstring

set-localeclj

(set-locale locale)

This sets the local for the instance

This sets the local for the instance
sourceraw docstring

trscljmacro

(trs msg & args)

Similar to puppetlabs.i18n.core/trs but creates a SystemLocalizedString instance so that conversion to the correct locale can be delayed until it is needed. This is needed as the system locale from the JVM can be overridden/changed by a setting. Calling str on the results of this invocation will lookup the translated version of the string.

Similar to `puppetlabs.i18n.core/trs` but creates a `SystemLocalizedString` instance so that conversion to the
correct locale can be delayed until it is needed. This is needed as the system locale from the JVM can be
overridden/changed by a setting. Calling `str` on the results of this invocation will lookup the translated version
of the string.
sourceraw docstring

trucljmacro

(tru msg & args)

Similar to puppetlabs.i18n.core/tru but creates a UserLocalizedString instance so that conversion to the correct locale can be delayed until it is needed. The user locale comes from the browser, so conversion to the localized string needs to be 'late bound' and only occur when the user's locale is in scope. Calling str on the results of this invocation will lookup the translated version of the string.

Similar to `puppetlabs.i18n.core/tru` but creates a `UserLocalizedString` instance so that conversion to the
correct locale can be delayed until it is needed. The user locale comes from the browser, so conversion to the
localized string needs to be 'late bound' and only occur when the user's locale is in scope. Calling `str` on the
results of this invocation will lookup the translated version of the string.
sourceraw docstring

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

× close