mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-03 02:21:33 +00:00
Merge pull request #3006 from mkllnk/i18n-error-detection
Raise error on missing translation keys
This commit is contained in:
5
spec/support/i18n_error_raising.rb
Normal file
5
spec/support/i18n_error_raising.rb
Normal 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
|
||||
Reference in New Issue
Block a user