Replies: 2 comments 1 reply
-
Huh, that doesn't sound like anything I've heard before. Are you sure…
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the response! Are you sure…
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '*.{rb,yml}')]
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
config.i18n.available_locales = [:en]
config.i18n.default_locale = :en to my |
Beta Was this translation helpful? Give feedback.
-
Disclaimer: I'm new to Rails. I don't think this is a passwordless problem specifically but I'm having trouble finding help elsewhere. I discovered that the subject of the sign in email comes from this line https://github.com/mikker/passwordless/blob/master/config/locales/en.yml#L25. I wanted to customize it so I made a
config/locales/en.yml
file like so:(I found I can also put the file at
config/locales/passwordless/en.yml
). When working in development locally I find that it uses my subject just fine. When I deploy it to Heroku however it uses the default subject from passwordless. I have a vanilla Rails 7 app via rails new and I haven't changed anything in development.rb or production.rb or application.rb. I don't see anything about the priority order of Rails.configuration.i18n.load_path being customizable or problematic in any of my searches. Any guidance anyone can provide would be appreciated.Beta Was this translation helpful? Give feedback.
All reactions