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

Support offset arg in pluralTypeHandler #9

Merged
merged 2 commits into from
Apr 13, 2021
Merged

Conversation

askvortsov1
Copy link
Contributor

Add tests and support for the plural type handler's offset arg. This arg is widely supported in other message formatting libraries, and isn't particularly difficult to implement now that #8 has been merged

Copy link
Owner

@ultraq ultraq left a comment

Choose a reason for hiding this comment

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

This was the first I had ever learned of the offset syntax, and it's kinda confusing! 😵 While reading about it, I found that there's even a linting rule out there to prevent the use of it because it's complicated! 😆 https://formatjs.io/docs/tooling/linter/#no-offset

@ultraq ultraq merged commit 98bab6d into ultraq:main Apr 13, 2021
@ultraq
Copy link
Owner

ultraq commented Apr 14, 2021

And 0.10.1 has been published with this change in it 🎉

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.

2 participants