From 3d3e143811ff5e476c8711c4669fe4322901aa50 Mon Sep 17 00:00:00 2001 From: mmd-osm Date: Sun, 1 Sep 2024 21:39:05 +0200 Subject: [PATCH 1/1] 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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") %>