- Implemented `extract_locale_from_accept_language_header` to retrieve the user's preferred language from the request. - Added `sanitize_locale` for validating and sanitizing locale inputs against available locales. - Updated `set_locale` method to prepare for incorporating browser language preference handling. These changes enhance the application's ability to set the locale based on the user's browser settings, paving the way for better internationalization support. |
||
---|---|---|
.. | ||
concerns | ||
application_controller.rb | ||
arts_controller.rb | ||
cities_controller.rb | ||
home_controller.rb | ||
rss_controller.rb | ||
sitemaps_controller.rb | ||
weather_arts_controller.rb |