From 5e76ec80cee31f12c891312fc2b2cb18597773f5 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 11 Oct 2018 19:14:55 +0100 Subject: [PATCH] Enable automatic translation export in the test environment Fixes #2016 --- config/environments/test.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/environments/test.rb b/config/environments/test.rb index 482b1fb4c..e4652b7ec 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -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 -- 2.39.5