Supported application locales.
Constructors
parse(raw :
String |
Nil) :
Locale Parses a raw string into a supported Locale, or defaults to En.
Sourceresolve(cli_arg :
String |
Nil = nil, config_lang :
String |
Nil = nil) :
Locale Resolves the active locale by checking:
- Explicit CLI argument (if provided)
- Configured user setting in config.yaml
- Environment variables ($CL8R_LANG, $LC_ALL, $LC_MESSAGES, $LANG)
- Fallback default: English (En)
SourceInstance methods
en?
Returns true if this enum value equals En
Sourcees_mx?
Returns true if this enum value equals EsMX
Sourcespanish?
Returns whether the locale represents Spanish
Sourcetag
Returns the canonical language tag (e.g. 'en', 'es-MX')
Source