Skip to content
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

feat(plugin-i18n): add new syntax for formatters in i18next #167

Merged
merged 1 commit into from Nov 10, 2021

Conversation

c43721
Copy link
Contributor

@c43721 c43721 commented Nov 7, 2021

This PR adds an option to the InternationalizationOptions called formatters which takes in a I18nextFormatters array to add to i18n via the i18next.services.formatter.add syntax, as described in https://www.i18next.com/translation-function/formatting#basic-usage.

Goal here is to move off the old, deprecated syntax and move to the new syntax, as the old way of adding formatters is considered deprecated in i18n version 21, described in https://www.i18next.com/translation-function/formatting#legacy-format-function-i18next-less-than-21.3.0.

@c43721 c43721 changed the title feat: add new syntax for formatters in i18next feat(plugin-i18n): add new syntax for formatters in i18next Nov 8, 2021
@favna favna merged commit d0f01d9 into sapphiredev:main Nov 10, 2021
@c43721 c43721 deleted the feat/add-service-loader-i18next branch November 10, 2021 21:39
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.

None yet

3 participants