Add monkeypatch to your application.rb so that an exception occurs if there is no translation:
module ActionView::Helpers::TranslationHelper def t_with_raise(*args) value = t_without_raise(*args) if value.to_s.match(/title="translation missing: (.+)"/) raise "Translation missing: #{$1}" else value end end alias_method :translate_with_raise, :t_with_raise alias_method_chain :t, :raise alias_method_chain :translate, :raise end
source share