Skip to content

Allow missingInterpolationHandler to be provided as t() option #1118

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

Merged
merged 1 commit into from
Oct 19, 2018

Conversation

mogelbrod
Copy link
Contributor

Fixes #1117.

@coveralls
Copy link

coveralls commented Oct 18, 2018

Coverage Status

Coverage increased (+0.02%) to 86.061% when pulling 1fc55ff on mogelbrod:master into 0de7e56 on i18next:master.

@@ -55,7 +55,7 @@ class Interpolator {
this.nestingRegexp = new RegExp(nestingRegexpStr, 'g');
}

interpolate(str, data, lng) {
interpolate(str, data, lng, options) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely satisfied with the additional argument here, but I also don't wish to risk breaking backwards compatibility.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree - but like you said...the best option to keep it safe.

@jamuhl
Copy link
Member

jamuhl commented Oct 18, 2018

already late here....will merge this tomorrow and publish an updated version to npm

@jamuhl jamuhl merged commit 9743e7a into i18next:master Oct 19, 2018
@jamuhl
Copy link
Member

jamuhl commented Oct 19, 2018

Thank you for taking the time to provide this PR. Was merged and published to npm in i18next@11.10.0.

And don’t forget to star this repo. Make a tweet or have a look at our https://locize.com -> there are many ways to help this project 🙏

@mogelbrod
Copy link
Contributor Author

Thanks for the quick responses, much appreciated! ⭐️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants