mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-23 15:28:23 -04:00
raise exception on missing translations in test and dev environment
This commit is contained in:
1 parent
f355c393f0
commit
87df8661c7
1 file changed
+6
@@ -1,2 +1,8 @@
|
||||
I18n.load_path += Dir[Rails.root.join('config', 'locales', '*.{rb,yml}')]
|
||||
|
||||
if Rails.env.development? || Rails.env.test?
|
||||
I18n.exception_handler = lambda do |exception, locale, key, options|
|
||||
raise "Missing translation: #{key}"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user