Skip to content

Commit 3a91006

Browse files
authored
Merge pull request rails#53966 from pixeltrix/update-i18n-guide-to-remove-note-about-nested-locale-folders
Remove note about nested locale folders configuration
2 parents 9b4a0b9 + 8f9b149 commit 3a91006

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)