We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In a project, I have implemented a t-error helper to standardize error handling:
t-error
Before:
{{#if (eq error.status 403)}} {{t "errors.forbidden"}} {{else if (gte error.status 400}} {{t "errors.server-failure"}} {{else}} {{t "my-component.error-message"}} {{/if}}
After:
{{t-error error "my-component.error-message"}}
Unfortunately, this forces me to add all fallback keys to ember-intl-analyzer whitelist.
ember-intl-analyzer
I would like to configure ember-intl-analyzer to recognize my t-error helper. I imagine something like this:
export default { whitelist: [ /^[^.]+\.warnings\.[^.]+$/, ], helpers: ['t', 't-error'], };
Is it something we want to support?
PS Please note this should not be sensitive to argument order.
CC @nickschot
The text was updated successfully, but these errors were encountered:
This is now available to use in 4.6.0
Sorry, something went wrong.
No branches or pull requests
In a project, I have implemented a
t-error
helper to standardize error handling:Before:
After:
Unfortunately, this forces me to add all fallback keys to
ember-intl-analyzer
whitelist.I would like to configure
ember-intl-analyzer
to recognize myt-error
helper. I imagine something like this:Is it something we want to support?
PS Please note this should not be sensitive to argument order.
CC @nickschot
The text was updated successfully, but these errors were encountered: