module I18n
Extended Modules
Defined in:
i18n.cri18n/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
- #available_locales
- #available_locales=(value)
- #backend
- #backend=(value)
-
#config
Gets I18n configuration object.
-
#config=(value)
Sets I18n configuration object.
- #default_locale
- #default_locale=(value)
- #default_separator
- #default_separator=(value)
- #exception_handler
- #exception_handler=(value)
- #init
- #load_path
- #load_path=(value)
- #locale
- #locale=(value)
- #localize(object, force_locale = config.locale, *args, **options)
- #translate(key : String, options : Hash | NamedTuple | Nil = nil, force_locale = config.locale, count = nil, default = nil, iter = nil) : String
-
#with_locale(tmp_locale, &)
Executes block with given I18.locale set.
Macro Summary
Instance Method Detail
def translate(key : String, options : Hash | NamedTuple | Nil = nil, force_locale = config.locale, count = nil, default = nil, iter = nil) : String
#