I18n.enforce_available_locales = true

I18n.enforce_available_locales = true

# raise exceptions when there is an incorrect or missing i18n key
# in development and test
module I18n
  def self.just_raise_that_exception(*args)
    raise "i18n #{args.first}"
  end
end
I18n.exception_handler = :just_raise_that_exception

Raise exceptions in dev/test if incorrect or missing translation keys are encountered
Raise exceptions in dev/test if incorrect or missing translation keys are encountered
