aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2016-06-29 19:05:19 -0700
committerVipul A M <vipulnsward@gmail.com>2016-06-29 19:05:19 -0700
commit683614009024b0bc36c68826e9fabc1857a27e8a (patch)
tree48d2e215ef9787f162923cb3af8f1308d62ee6ef
parent5343626ea8b17a92b6b4603f2404ba06800b21b1 (diff)
downloadrails-683614009024b0bc36c68826e9fabc1857a27e8a.tar.gz
rails-683614009024b0bc36c68826e9fabc1857a27e8a.tar.bz2
rails-683614009024b0bc36c68826e9fabc1857a27e8a.zip
Expand on #24071 for specifying custom locale fallbacks. [ci skip]
-rw-r--r--guides/source/configuring.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index f34b6473b2..0cb039981c 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -297,7 +297,9 @@ All these configuration options are delegated to the `I18n` library.
* Or you can set different fallbacks for locales individually. For example, if you want to use `:tr` for `:az` and `:de`, `:en` for `:da` as fallbacks, you can do it, like so:
```ruby
- config.i18n.fallbacks = { az: :tr, da: [:de, :en] }
+ config.i18n.fallbacks = { az: :tr, da: [:de, :en] }
+ #or
+ config.i18n.fallbacks.map = { az: :tr, da: [:de, :en] }
```
### Configuring Active Record