DocCards incorrectly pluralise the number of elements within them when only one is present #10098
Closed
6 of 7 tasks
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
difficulty: starter
Issues that are starter difficulty level, e.g. minimal tweaking with a clear test plan.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
When a categories contain only a single item, it is correctly pluralised. See https://github.com/facebook/docusaurus/blob/main/packages/docusaurus-theme-classic/src/theme/DocCard/index.tsx#L35 - There appears to be some reference to pluralisation, however i get
1 items
Reproducible demo
No response
Steps to reproduce
https://github.com/PaperMC/docs Repo, and look at our Misc Project with the Tools category
Expected behavior
1 Item
Actual behavior
1 Items
Your environment
Self-service
The text was updated successfully, but these errors were encountered: