Merge pull request #3006 from mkllnk/i18n-error-detection

Raise error on missing translation keys
This commit is contained in:
Maikel
2019-06-25 16:13:15 +10:00
committed by GitHub

View File

@@ -0,0 +1,5 @@
# From: https://robots.thoughtbot.com/better-tests-through-internationalization
I18n.exception_handler = lambda do |exception, locale, key, options|
raise "missing translation: #{key}"
end