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

move pluralization extraction to a separate function #40

Open
wants to merge 4 commits into
base: preactX
Choose a base branch
from

Conversation

AEnterprise
Copy link

@AEnterprise AEnterprise commented Dec 16, 2019

This allows people using the this to provide their own function that handles pluralization rules for languages currently not supported by this implementation

this is optional and the current implementation is used as default

this also brings the preactX branch back in line with the master branch as well

remake of #37
fixes #2

@AEnterprise AEnterprise changed the title Preact x move pluralization extraction to a separate function Dec 16, 2019
@AEnterprise
Copy link
Author

one of the tests is still failing but i have no clue how or why and failed after merging master in, before i made any other changes, the object has Text as type instead of as nodeName, attribues doesn't even exist on it

@AEnterprise
Copy link
Author

this seems to work fine other then issues already noted in #39

@@ -150,6 +150,8 @@ A companion ESLint plugin exists, [eslint-plugin-preact-i18n](https://www.npmjs.
- [Examples](#examples-4)
- [intl](#intl)
- [Parameters](#parameters-5)
- [defaultProvider](#defaultprovider)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the term "provider" has been overloaded a lot and it could become confusing, can we call this the pluralizer instead?

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

Successfully merging this pull request may close these issues.

3 participants