synacor / preact-i18n

Simple localization for Preact.
BSD 3-Clause "New" or "Revised" License
205 stars 18 forks source link

move pluralization extraction to a separate function #40

Open AEnterprise opened 4 years ago

AEnterprise commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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