module I18n

Extended Modules

Defined in:

i18n.cr
i18n/backend/base.cr
i18n/backend/yaml.cr
i18n/config.cr
i18n/exceptions.cr
i18n/version.cr

Constant Summary

VERSION = "0.3.1"

Instance Method Summary

Macro Summary

Instance Method Detail

def available_locales #

[View source]
def available_locales=(value) #

[View source]
def backend #

[View source]
def backend=(value) #

[View source]
def config #

Gets I18n configuration object.


[View source]
def config=(value) #

Sets I18n configuration object.


[View source]
def default_locale #

[View source]
def default_locale=(value) #

[View source]
def default_separator #

[View source]
def default_separator=(value) #

[View source]
def exception_handler #

[View source]
def exception_handler=(value) #

[View source]
def init #

[View source]
def load_path #

[View source]
def load_path=(value) #

[View source]
def locale #

[View source]
def locale=(value) #

[View source]
def localize(object, force_locale = config.locale, *args, **options) #

[View source]
def translate(key : String, options : Hash | NamedTuple | Nil = nil, force_locale = config.locale, count = nil, default = nil, iter = nil) : String #

[View source]
def with_locale(tmp_locale, &) #

Executes block with given I18.locale set.


[View source]

Macro Detail

macro define_delegators(names) #

[View source]