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
Ember-intl 6.x crashes on empty translation keys #1713
Comments
@IgnaceMaes I am still on In
Hope it helps! |
Even with that option disabled it still throws the error at runtime. For now I've been extending the import Helper from 'ember-intl/helpers/t';
export default class extends Helper {
allowEmpty = true;
} |
@IgnaceMaes I confirmed that, in -format-base.js:40 Uncaught Error: <hello-world@helper:t::ember90> helper requires value attribute.
at _default.compute (-format-base.js:40:1)
at ClassicHelperManager.getValue (index.js:2484:1)
at manager.js:300:1
at reference.js:136:1
at track (validator.js:635:1)
at valueForRef (reference.js:135:1)
at Object.evaluate (runtime.js:3269:1)
at AppendOpcodes.evaluate (runtime.js:1052:1)
at LowLevelVM.evaluateSyscall (runtime.js:4214:1)
at LowLevelVM.evaluateInner (runtime.js:4185:1) However, I'm hesitant to consider the issue a bug or regression. To my understanding, Because of another change in behavior (missing Can you help me understand your case? I didn't quite understand how we might have |
Will close the issue, as |
Issue
When upgrading to Ember 4.x the following
ember-intl@5.7.2
issue triggers at runtime #1584. This was resolved by upgrading to version6.0.0-beta.3
.Upgrading to version 6 however causes a different issue. When calling the translate function with an empty string it crashes. Looking at the release notes this behaviour isn't documented as a breaking change so I presume this is a bug?
Environment
Steps to Reproduce
ember-intl@6.0.0-beta.3
{{t ""}}
While on version
5.7.2
this would trigger an info log:The text was updated successfully, but these errors were encountered: