martinandert / counterpart

A translation and localization library for Node.js and the browser.
MIT License
242 stars 25 forks source link

Name of the option to select a specific pluralization #34

Closed Nick-Burdo closed 8 years ago

Nick-Burdo commented 8 years ago

Hi! I have been using your wonderful library (by react-translate-component). When I used pluralization, I was faced with a problem. I used notationsCount instead of count as name for option to select a specific pluralization and got an error Uncaught Invariant Violation: Interpolate expects either a format string as only child or a 'format' prop with a string value. It took some time until I figured it out. Please emphasize in the documentation the fact that the name of the option to select a specific pluralization must be count.

martinandert commented 8 years ago

Done. Thanks!

sondosmustafa commented 5 years ago

Interpolate expects either a format string as only child or a format prop with a string value error ? any solution !