Skip to content

Commit 8f9b149

Browse files
committed
Remove note about nested locale folders configuration
This was added in rails#41872 and released in Rails 7.0 Fixes rails#53912.
1 parent 92de92a commit 8f9b149

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

guides/source/i18n.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -589,13 +589,6 @@ For example, your `config/locales` directory could look like this:
589589

590590
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.
591591

592-
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:
593-
594-
```ruby
595-
# config/application.rb
596-
config.i18n.load_path += Dir[Rails.root.join("config", "locales", "**", "*.{rb,yml}")]
597-
```
598-
599592
Overview of the I18n API Features
600593
---------------------------------
601594

0 commit comments

Comments
 (0)