Is there a way to enable Rails to infer the english translations from the key names automatically?
Currently I have to explicitly write the translation, because otherwise it would just output en, devise.confirmations.new.resend_confirmation_instructions
in the view.
What I currently have to write in the config/locales/en.yml
file:
en:
devise:
confirmations:
new:
resend_confirmation_instructions: "Resend confirmation instructions."
What I would like to have:
en:
devise:
confirmations:
new:
resend_confirmation_instructions:
And the view should just output "Resend confirmation instruction." which is inferred directly from that key.