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

Fix Chinese pluralization bug in index.js #187

Closed
wants to merge 1 commit into from

Conversation

abel533
Copy link

@abel533 abel533 commented Dec 5, 2024

Update the chinese function in index.js to handle singular and plural forms correctly.

  • index.js

    • Modify the chinese function to return 0 for singular and 1 for plural.
    • Update the pluralTypes object to include the updated chinese function.
  • test/index.js

    • Add test cases to verify the correct handling of singular and plural forms for Chinese.

For more details, open the Copilot Workspace session.

Update the `chinese` function in `index.js` to handle singular and plural forms correctly.

* **index.js**
  - Modify the `chinese` function to return 0 for singular and 1 for plural.
  - Update the `pluralTypes` object to include the updated `chinese` function.

* **test/index.js**
  - Add test cases to verify the correct handling of singular and plural forms for Chinese.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/airbnb/polyglot.js?shareId=XXXX-XXXX-XXXX-XXXX).
@abel533 abel533 closed this Dec 5, 2024
@abel533 abel533 deleted the fix-chinese-pluralization branch December 5, 2024 16:01
@ljharb
Copy link
Collaborator

ljharb commented Dec 5, 2024

Duplicate of #188.

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