-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add error handling for failed parsing. Allow custom error handler. #24
Conversation
Added non-interpollated string as an argument and as the default return.
Hi @jamuhl, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
published in [email protected] |
bindI18nStore: '' | ||
bindI18nStore: '', | ||
|
||
// Will be run when parser throws an error. Return a string to use in place of the translation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest a slight re-phrase: "Return a string to use in place of the translation" => "Can return any string, which can be used as a fallback, in case of broken translation.
Added custom error handler when parsing fails. Addresses this issue #21
Checklist
npm run test