]> git.openstreetmap.org Git - rails.git/commit
I18n: messages: avoid dynamic translation keys
authormmd-osm <mmd.osm@gmail.com>
Sun, 1 Sep 2024 19:39:05 +0000 (21:39 +0200)
committermmd-osm <mmd.osm@gmail.com>
Mon, 2 Sep 2024 04:55:21 +0000 (06:55 +0200)
commit3d3e143811ff5e476c8711c4669fe4322901aa50
treebade3432ea05c014fdb311bb5700eac2828975b1
parentf6d33afb75ee8ce7ae46b2341ce78b3d70f9cc4d
I18n: messages: avoid dynamic translation keys

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.
app/views/messages/_heading.html.erb