From: mmd-osm Date: Sun, 1 Sep 2024 19:39:05 +0000 (+0200) Subject: I18n: messages: avoid dynamic translation keys X-Git-Tag: live~197^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/3d3e143811ff5e476c8711c4669fe4322901aa50 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. --- diff --git a/app/views/messages/_heading.html.erb b/app/views/messages/_heading.html.erb index 90995ed88..c3b479202 100644 --- a/app/views/messages/_heading.html.erb +++ b/app/views/messages/_heading.html.erb @@ -3,14 +3,14 @@ <% content_for :heading do %>

<%= t("users.show.my messages") %>