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

Tom Hughes notifications at github.com
Mon Mar 3 23:05:24 UTC 2025


A few fixes and cleanups for I18n fallback:

* Disable client side fallback in javascript that isn't doing anything as we only load one locale - note that in the embed view the story is different as we load all locales there.
* Drop an old monkey patch that no longer seems to be needed.
* Fix the Norwegian fallback to work - currently it is being overwritten after it is added.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5745

-- Commit Summary --

  * Disable client side I18n fallbacks
  * Drop monkey patch that no longer seems to be needed
  * Wait until rails has initialised to update I18n fallbacks

-- File Changes --

    M app/assets/javascripts/application.js (1)
    M config/initializers/i18n.rb (12)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5745.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5745.diff

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

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


More information about the rails-dev mailing list