[openstreetmap/openstreetmap-website] Translation scope for shared pagination (PR #5179)

Tom Hughes notifications at github.com
Tue Sep 10 11:59:45 UTC 2024


Actually as this is a system test the story is slightly different but for a user that is no logged in the locale will be derived from the user agent's `Accept-Language` header and we explicitly set that to english (https://github.com/openstreetmap/openstreetmap-website/blob/master/test/application_system_test_case.rb#L11)  and if a logged in user has no language set (as here) then the first request to try and set a locale will set it from the browser (https://github.com/openstreetmap/openstreetmap-website/blob/app/controllers/application_controller.rb#L205).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5179#issuecomment-2340480730
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5179/c2340480730 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240910/8d51e5b8/attachment-0001.htm>


More information about the rails-dev mailing list