Skip to content

Commit

Permalink
Remove note about nested locale folders configuration
Browse files Browse the repository at this point in the history
This was added in rails#41872 and released in Rails 7.0

Fixes rails#53912.
  • Loading branch information
pixeltrix committed Dec 15, 2024
1 parent 92de92a commit 8f9b149
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions guides/source/i18n.md
Original file line number Diff line number Diff line change
Expand Up @@ -589,13 +589,6 @@ For example, your `config/locales` directory could look like this:

This way, you can separate model and model attribute names from text inside views, and all of this from the "defaults" (e.g. date and time formats). Other stores for the i18n library could provide different means of such separation.

NOTE: The default locale loading mechanism in Rails does not load locale files in nested dictionaries, like we have here. So, for this to work, we must explicitly tell Rails to look further:

```ruby
# config/application.rb
config.i18n.load_path += Dir[Rails.root.join("config", "locales", "**", "*.{rb,yml}")]
```

Overview of the I18n API Features
---------------------------------

Expand Down

0 comments on commit 8f9b149

Please sign in to comment.