class Rosetta::Config
- Rosetta::Config
- Reference
- Object
Defined in:
rosetta/config.crConstant Summary
-
AVAILABLE_LOCALES =
[:en] of ::Symbol
-
DEFAULT_LOCALE =
:en
Instance Method Summary
-
#locale : String
Gets the current locale or falls back to the default locale if it's not defined.
-
#locale=(locale : String | Symbol)
Sets the current locale with the given value, if it's found in the available locales.
Instance Method Detail
def locale : String
#
Gets the current locale or falls back to the default locale if it's not defined.
def locale=(locale : String | Symbol)
#
Sets the current locale with the given value, if it's found in the available locales.