Skip to content

Commit 4616be2

Browse files
committed
Raise error on missing translation
1 parent 6a83663 commit 4616be2

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

spec/dummy/config/environments/test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@
4141
config.active_support.deprecation = :stderr
4242

4343
# Raises error for missing translations
44-
# config.action_view.raise_on_missing_translations = true
44+
config.action_view.raise_on_missing_translations = true
4545
end
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
I18n.exception_handler = lambda do |exception, locale, key, options|
2+
raise exception
3+
end

0 commit comments

Comments
 (0)