As stated in ActionView's documentation, the t
view helper in Rails automatically mangles missing translations. Eg:
irb> helper.t('words.foo_bar')
=> "<span class="translation_missing" title="translation missing: en.words.foo_bar">Foo Bar</span>"
Is there any way to disable this globally? I'd much rather see "translation missing: en.words.asdf" .
The only workaround that I've found is to use I18n.t "..."
instead of t "..."
in views.
Thanks!
I have this file in my
config/initializers
directory, which shows me all translation lookups that failed and where they originated from in the log output: https://gist.github.com/1594660Maybe this is exactly what you are looking for.