Skip to content

Incorrect Display of Category Titles in Zh-Hans i18n Document Page #9017

Description

@Lorde627

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

In the i18n environment, on the Zh-Hans document page, the next button's title related to categories is displayed in English instead of Chinese. However, this issue is not present in documents.

Unfortunately, the category.json file is not applicable in the i18n environment, and there is no available option to modify it in the current.json file.

Reproducible demo

https://github.com/Lorde627/FydeOS-enterprise-docs

Steps to reproduce

  1. create i18n folder
  2. fill with the content
  3. yarn build && yarn serve

Expected behavior

the categories title display normally just like the docs.

Actual behavior

In the i18n environment, on the Zh-Hans document page, the next button's title related to categories is displayed in English instead of Chinese. However, this issue is not present in documents.

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 executionclosed: duplicateThis issue or pull request already exists in another issue or pull request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions