Enable automatic translation export in the test environment
authorTom Hughes <tom@compton.nu>
Thu, 11 Oct 2018 18:14:55 +0000 (19:14 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 11 Oct 2018 18:14:55 +0000 (19:14 +0100)
Fixes #2016

config/environments/test.rb

index 482b1fb..e4652b7 100644 (file)
@@ -41,6 +41,9 @@ Rails.application.configure do
   # Print deprecation notices to the stderr.
   config.active_support.deprecation = :stderr
 
+  # Export translations automatically
+  config.middleware.use I18n::JS::Middleware
+
   # Raises error for missing translations
   config.action_view.raise_on_missing_translations = true
 end