class
Marten::Conf::GlobalSettings::I18n
- Marten::Conf::GlobalSettings::I18n
- Reference
- Object
Overview
Allows to configure internationalization-related settings.
Defined in:
marten/conf/global_settings/i18n.crInstance Method Summary
-
#available_locales : Array(String)?
Returns the available locales.
-
#available_locales=(available_locales : Array(String | Symbol) | Nil)
Allows to set the available locales.
-
#default_locale : String
Returns the default locale.
-
#default_locale=(locale : String | Symbol)
Allows to set the default locale.
-
#fallbacks : I18n::Locale::Fallbacks
Returns the locale fallbacks.
-
#fallbacks=(fallbacks : Array(String | Symbol) | Hash(String | Symbol, Array(String | Symbol) | String | Symbol) | ::I18n::Locale::Fallbacks | NamedTuple)
Allows to set the locale fallbacks.
-
#locale_cookie_name : String
Returns the name of the cookie used to determine the current locale.
-
#locale_cookie_name=(name : String | Symbol)
Allows to set the name of the cookie used to determine the current locale.
Instance Method Detail
Allows to set the available locales.
def fallbacks=(fallbacks : Array(String | Symbol) | Hash(String | Symbol, Array(String | Symbol) | String | Symbol) | ::I18n::Locale::Fallbacks | NamedTuple)
#
Allows to set the locale fallbacks.
Returns the name of the cookie used to determine the current locale.
Allows to set the name of the cookie used to determine the current locale.