class Marten::Conf::GlobalSettings::I18n

Overview

Allows to configure internationalization-related settings.

Defined in:

marten/conf/global_settings/i18n.cr

Instance Method Summary

Instance Method Detail

def available_locales : Array(String)? #

Returns the available locales.


[View source]
def available_locales=(available_locales : Array(String | Symbol) | Nil) #

Allows to set the available locales.


[View source]
def default_locale : String #

Returns the default locale.


[View source]
def default_locale=(locale : String | Symbol) #

Allows to set the default locale.


[View source]
def fallbacks : I18n::Locale::Fallbacks #

Returns the locale fallbacks.


[View source]
def fallbacks=(fallbacks : Array(String | Symbol) | Hash(String | Symbol, Array(String | Symbol) | String | Symbol) | ::I18n::Locale::Fallbacks | NamedTuple) #

Allows to set the locale fallbacks.


[View source]
def locale_cookie_name : String #

Returns the name of the cookie used to determine the current locale.


[View source]
def locale_cookie_name=(name : String | Symbol) #

Allows to set the name of the cookie used to determine the current locale.


[View source]