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/6...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to