tigrish / devise-i18n

Translations for the devise gem
MIT License
744 stars 536 forks source link

custom strings #344

Closed prp-e closed 1 year ago

prp-e commented 1 year ago

Greetings.

For devise views I have used devise-i18n gem and I added this section to the view:

<div class="section orange-section">
  <h1><%= t('registration_tips')%></h1>
  <p><%= t('registrations_guide_html')%></p>
</div>

and in the YML file, I did this:

registrations:
 new:
  registration_tips: "some text"
  registration_guide_html: "some text"

But it doesn't work. How can I actually get it to work and display my texts correctly?

Thanks!

JasonBarnabe commented 1 year ago

Looks like you asked and received an answer on Reddit.