[openstreetmap/openstreetmap-website] I18n fallback fixes (PR #5745)

Anton Khorev notifications at github.com
Sun Mar 9 12:07:05 UTC 2025


AntonKhorev left a comment (openstreetmap/openstreetmap-website#5745)

How does the Norwegian fallback work? I can see it's working if I replace the locale selection logic with `I18n.locale = 'no'` in `set_locale`

https://github.com/openstreetmap/openstreetmap-website/blob/95b8297955268874bbc4dc657e96f5bc1f0fabb8/app/controllers/application_controller.rb#L204-L214

But is `Locale.available.preferred(preferred_languages)` ever going to return `'no'`?

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

Message ID: <openstreetmap/openstreetmap-website/pull/5745/c2708823580 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250309/3948c5ee/attachment.htm>


More information about the rails-dev mailing list