From: Tom Hughes Date: Thu, 11 Oct 2018 18:14:55 +0000 (+0100) Subject: Enable automatic translation export in the test environment X-Git-Tag: live~2840 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/5e76ec80cee31f12c891312fc2b2cb18597773f5 Enable automatic translation export in the test environment Fixes #2016 --- 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