Use the http_accept_language gem to set the locale requested by the user's browser if no locale param is present in the URL.