I18n.enforce_available_locales = true
if Rails.env.development? || Rails.env.test?
  I18n.exception_handler = lambda do |exception, locale, key, options|
    raise "missing translation: #{key}"
  end
end

I18n.enforce_available_locales = true
if Object.const_defined?(:ZineDistro) && ZineDistro.const_defined?(:Application)
  if Rails.env.development? || Rails.env.test?
    I18n.exception_handler = lambda do |_exception, locale, key, _options|
      fail "missing translation: #{key} for #{locale}"
    end
  end
end

Check if the Rails constant is available
Check if the Rails constant is available

Exceptions for missing exceptions should be raised in development mode
or in CI
