[openstreetmap/openstreetmap-website] Use I18n.exists? to filter available locales (PR #6007)

Anton Khorev notifications at github.com
Mon May 12 14:53:51 UTC 2025


The method that checks if a locale exists currently does it by accessing the translation and checking if exception is (not) thrown. It could use `I18n.exists?` instead.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Use I18n.exists? to filter available locales

-- File Changes --

    M lib/locale.rb (4)

-- Patch Links --

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

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

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


More information about the rails-dev mailing list