-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ActionView translate regression since 4.1 when default is missing #19967
Comments
Looks like between 4.0 and 4.1 new options was introduced that allows enabling or disabling raise in case of missing translation, with false as default. But then something went horribly wrong and it looks like this option is now always set to In theory #17676 was supposed to fix it, but from what I can see it's not doing it in this case. You could fix it by adding raise_error = options[:raise] || options[:rescue_format] || ActionView::Base.raise_on_missing_translations
options[:raise] = ActionView::Base.raise_on_missing_translations |
The problem is that (per the comment above that assignment) However, having mangled Thus, I suspect we want to add |
… is missing. Fixes rails#19967
#19998 should fix this problem. |
… is missing. Fixes rails#19967
… is missing. Fixes rails#19967
… is missing. Fixes rails#19967
… is missing. Fixes rails#19967
It would raise error when default translation is missing instead of returning HTML "missing translation" message.
Here is my test case:
The last test is failing since version 4.1.
Is this a feature or a bug?
The text was updated successfully, but these errors were encountered: