aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorGannon McGibbon <gannon.mcgibbon@gmail.com>2018-10-16 17:40:29 -0400
committerGannon McGibbon <gannon.mcgibbon@gmail.com>2018-10-22 11:50:01 -0400
commit5c62bd53f6589be67bd0037acbeaa9b7db7a67a3 (patch)
treed97a8c0b6443b659b1e9d22f24211864a8aa33e3 /guides
parent2c01714d2d27c80008f479611e7fcf66eec86987 (diff)
downloadrails-5c62bd53f6589be67bd0037acbeaa9b7db7a67a3.tar.gz
rails-5c62bd53f6589be67bd0037acbeaa9b7db7a67a3.tar.bz2
rails-5c62bd53f6589be67bd0037acbeaa9b7db7a67a3.zip
[ci skip] Clarify load_paths behaviour
Clarify `I18n.load_paths` vs `Rails.application.config.i18n.load_paths` behaviour. [Gannon McGibbon + Alberto Almagro Sotelo]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/i18n.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/i18n.md b/guides/source/i18n.md
index b1bb13e0f8..eba71eec60 100644
--- a/guides/source/i18n.md
+++ b/guides/source/i18n.md
@@ -135,6 +135,8 @@ I18n.available_locales = [:en, :pt]
I18n.default_locale = :pt
```
+Note that appending directly to `I18n.load_paths` instead of to the application's configured i18n will _not_ override translations from external gems.
+
### Managing the Locale across Requests
The default locale is used for all translations unless `I18n.locale` is explicitly set.