I have read some documentation about I18n and exceptions, but I need
My idea is to implement an exception when my functional test watch a
missing translation like what I’m seeing in “Rails
Internationalization (I18n) API Guide” (http://guides.rubyonrails.org/
i18n.html#using-different-exception-handlers). The documentation seem
to be old.
I try some context.
Gist number 1 (http://gist.github.com/472395) works with #t method and
a correct translation key.
Gist number 2 (http://gist.github.com/472404) doesn’t raise an
exception with #t method.
Gist number 3 (http://gist.github.com/472423) raise an exception but I
must specify I18n.t method to translate.
Questions are :
How to implement a raise with #t helper method ?
And, how to specify the right exception ?
Thank’s for your patience and your help.