[openstreetmap/openstreetmap-website] Improves unused translation keys in activerecord (PR #5242)
Nenad Vujicic
notifications at github.com
Mon Sep 30 15:19:29 UTC 2024
PR replaces .is_already_muted with I18n.t("activerecord.errors.models.user_mute.is_already_muted") in user_mute.rb and adds activerecord.errors.models.user_mute.attributes.subject.format under ignore_unused (in i18n-tasks.yml) since used for formatting above validation error message, so they are not reported as unused anymore.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/5242
-- Commit Summary --
* Improves unused translation keys in activerecord
-- File Changes --
M app/models/user_mute.rb (2)
M config/i18n-tasks.yml (1)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/5242.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5242.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5242
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5242 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240930/4283253a/attachment.htm>
More information about the rails-dev
mailing list