projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
091818d
)
Enable automatic translation export in the test environment
author
Tom Hughes
<tom@compton.nu>
Thu, 11 Oct 2018 18:14:55 +0000
(19:14 +0100)
committer
Tom Hughes
<tom@compton.nu>
Thu, 11 Oct 2018 18:14:55 +0000
(19:14 +0100)
Fixes #2016
config/environments/test.rb
patch
|
blob
|
history
diff --git
a/config/environments/test.rb
b/config/environments/test.rb
index 482b1fb4c750b86bcea97c0e0e1a80548139fc45..e4652b7ec3ed8e52a19d7fd7e429e178b628e07f 100644
(file)
--- 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