| Module | HttpAcceptLanguage |
| In: |
lib/http_accept_language.rb
|
Returns the first of the user_preferred_languages that is compatible with the available locales. Ignores region.
Example:
request.compatible_language_from I18n.available_locales
Finds the locale specifically requested by the browser.
Example:
request.preferred_language_from I18n.available_locales # => 'nl'