Module | Locale::Driver::Env |
In: |
lib/locale/driver/env.rb
|
Locale::Driver::Env module. Detect the user locales and the charset. All drivers(except CGI) refer environment variables first and use it as the locale if it‘s defined. This is a low-level module. Application shouldn‘t use this directly.
Gets the locale from environment variable. Priority order except charset is LC_ALL > LC_MESSAGES > LANG. Priority order for charset is LC_ALL > LC_CTYPE > LANG. Returns: the locale as Locale::Tag::Posix.
Gets the locales from environment variables. (LANGUAGE > LC_ALL > LC_MESSAGES > LANG)