herbgobbler icon indicating copy to clipboard operation
herbgobbler copied to clipboard

herbgobbler doesn't move confirm: into the translation file

Open ceigel opened this issue 10 years ago • 0 comments

I have a link_to with a confirm: key added to it. Herbgobbler transfers the text of the link, but not the confirm. It would be great if it would move the confirm to the translation files, as well

Before gobble i18n -a . -<%= link_to '| Leave course', @course_subscription, method: :delete, remote:true, confirm: "All your progress will be lost, are you sure you want to leave course?" %>

After. +<%= link_to (t '.leave_course'), @course_subscription, method: :delete, remote:true, confirm: "All your progress will be lost, are you sure you want to leave course?" %>

It would be great if the confirm text would be added as well

ceigel avatar Dec 01 '14 10:12 ceigel