docusaurus icon indicating copy to clipboard operation
docusaurus copied to clipboard

Generated category index page title not translated in pagination link

Open wataru-super opened this issue 3 years ago • 1 comments

Have you read the Contributing Guidelines on issues?

Prerequisites

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

Description

The title should be translated into locale language:

https://github.com/facebook/docusaurus/blob/6514f0784bd91bdce5d86be5fb1df338089db9d7/packages/docusaurus-theme-classic/src/theme/PaginatorNavLink/index.tsx#L23

Reproducible demo

No response

Steps to reproduce

see https://docusaurus.io/zh-CN/docs

Expected behavior

At footer, the next page title of next document should be translated into Chinese

Actual behavior

not translated

Your environment

No response

Self-service

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

wataru-super avatar Sep 20 '22 05:09 wataru-super

Thanks for the issue! This is specifically happening for generated category index pages, because their metadata are not passed through as translated.

Josh-Cena avatar Sep 21 '22 20:09 Josh-Cena