Skip to content

Commit af5b216

Browse files
committed
Do not configure the fallback locale
This is a setting the host app should be making. This is what it does: It adds the `default_locale` as a fallback locale to all `available_locales`. This means that for a store with e.g. a German default locale and en English locale, missing English translations would be replaced by their German equivalents rather than show up as missing translations. This fallback locale feature is very nice, but not very well documented, and should IMO not be triggered from any gem's initializer.
1 parent b4ffdcf commit af5b216

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

lib/solidus_i18n/engine.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class Engine < Rails::Engine
1717
end
1818

1919
initializer 'solidus.i18n.environment', before: :load_config_initializers do |app|
20-
app.config.i18n.fallbacks = true
2120
I18n.locale = app.config.i18n.default_locale if app.config.i18n.default_locale
2221
SolidusI18n::Config = SolidusI18n::Configuration.new
2322
end

0 commit comments

Comments
 (0)