]> git.openstreetmap.org Git - rails.git/blobdiff - config/environments/development.rb
Only fetch client side translations for the current locale
[rails.git] / config / environments / development.rb
index 9065ed8e35b83518a9291393c5c45329876f731b..b7e60eb4fd9ad352854f96bcee53fa52d3518afc 100644 (file)
@@ -52,6 +52,9 @@ Rails.application.configure do
   # Suppress logger output for asset requests.
   config.assets.quiet = true
 
+  # Export translations automatically
+  config.middleware.use I18n::JS::Middleware
+
   # Raises error for missing translations
   # config.action_view.raise_on_missing_translations = true