[openstreetmap/openstreetmap-website] I18N: messages: avoid dynamic translation keys (PR #5145)

mmd notifications at github.com
Sun Sep 1 19:47:58 UTC 2024


By moving the translation outside the loop and calling t(...) with explicitly stated keys, `bundle exec i18n-tasks unused` no longer reports the keys as unused.

Should we rename `i18n_key` to something different as well?
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * I18n: messages: avoid dynamic translation keys

-- File Changes --

    M app/views/messages/_heading.html.erb (6)

-- Patch Links --

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

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

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


More information about the rails-dev mailing list