Skip to content

DocCards incorrectly pluralise the number of elements within them when only one is present #10098

@olijeffers0n

Description

@olijeffers0n

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

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

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its executiondifficulty: starterIssues that are starter difficulty level, e.g. minimal tweaking with a clear test plan.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions