
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
ember-intl-errors
Advanced tools
This addon is ember-i18n-errors implementation for ember-intl.
It adds to your app a handy helper {{t-error error}} for translating errors in the context of
the current route, but also takes advantage of Ember's route nesting to lookup translations in fallback on
parent routes.
ember install ember-intl-errors
This is better explained with an example.
Let's say we have a validation error with the mandatory shape ({ attribute: 'email', message: 'invalid' }) and
some nested routes with this structure:
parent
└── child
└── grandchild
If within the grandchild.hbs template we use the helper {{t-error error}} the helper will try to
find the most especific translation key for it based on the route hierarchy.
It follows a set of conventions very similar to how rails-i18n handles ActiveRecord errors.
The fallback chain for that error will be:
parent.child.grandchild.errors.email.invalid
parent.child.grandchild.errors.invalid
parent.child.errors.email.invalid
parent.child.errors.invalid
parent.errors.email.invalid
parent.errors.invalid
errors.email.invalid
errors.invalid
If none of those keys is defined in your translations the missing translation message will point you to the most
specific translation: Missing translation: parent.child.grandchild.errors.email.invalid.
git clone git@github.com:Mifrill/ember-intl-errors.gitcd ember-intl-errorsnpm installyarn lint:jsyarn lint:js -- --fixember test – Runs the test suite on the current Ember versionember test --server – Runs the test suite in "watch mode"ember try:each – Runs the test suite against multiple Ember versionsember serveFor more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.
FAQs
This addon is ember-i18n-errors implementation for ember-intl.
We found that ember-intl-errors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.