Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ace1cf0

Browse files
committed
Add enabled I18n fallbacks
1 parent cb7a459 commit ace1cf0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎config/application.rb‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class Application < Rails::Application
2626
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
2727
config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
2828
config.i18n.default_locale = 'zh-CN'
29+
config.i18n.fallbacks = true
2930

3031
config.autoload_paths << Rails.root.join('app/api')
3132
config.eager_load_paths += %W( #{config.root}/lib/exception_notifier )

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /