mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
9a3a4d6aefa7e2ca94340754eb5541bea1783de0
Allows to configure locale fallbacks through config.i18n.fallbacks. The default setting
config.i18n.fallbacks = true in production.rb will make I18n.t lookup fallback to the
I18n.default_locale if a translation could not be found for the current or given locale.
config.fallbacks = true
config.fallbacks.map = { :ca => :es }
config.fallbacks.defaults = [:'es-ES', :es]
config.fallbacks = [:'es-ES', :es]
config.fallbacks = { :ca => :es }
config.fallbacks = [:'es-ES', :es, { :ca => :es }]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Make i18n fallbacks configurable and fallback to the default locale by default in production [#4428 state:resolved]
Make i18n fallbacks configurable and fallback to the default locale by default in production [#4428 state:resolved]
moved rails binary to rails gem, so rubygems can find specific versions of rails [#4382 state:resolved]
Description
No description provided
Languages
Ruby
97.9%
CSS
1.5%
HTML
0.5%