10

Allow loading nested locales in engines by gmcgibbon · Pull Request #41872 · rai...

 2 years ago
source link: https://github.com/rails/rails/pull/41872
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Copy link

Contributor

jacobherrington left a comment

Hey @gmcgibbon! wave

Does it make sense to document that this is possible with the other Rails::Engine docs?

# inside +app+, load routes at <tt>config/routes.rb</tt>, load locales at # <tt>config/locales/*</tt>, and load tasks at <tt>lib/tasks/*</tt>.

The current phrasing implies something different, so it could be updated to something like:

  # Then ensure that this file is loaded at the top of your <tt>config/application.rb</tt>
  # (or in your +Gemfile+) and it will automatically load models, controllers and helpers
  # inside +app+, load routes at <tt>config/routes.rb</tt>, load locales at
  # <tt>config/locales/**/*</tt>, and load tasks at <tt>lib/tasks/*</tt>.

It looks like that documentation should also be updated with respect to tasks and routes which can be nested as well!


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK