You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read the console error message carefully (if applicable).
Description
The labels for documents work fine - the problem is with labels for catgories (folders)
Not sure how to tag this. It is either "Bug", "Feature request" or "Documentation"
In documentation I am not able to find how to translate the labels for auto-generated sidebar documentation menu.
Reproducible demo
No response
Steps to reproduce
configure i18n as per documentation
copy docs to i18n folder
translate documents
translate category labels in _category_.yml files
position: 3
label: "translated label"
run npm run start -- --locale fr
Expected behavior
Expect in sidebar to see the translated labels from category.yml files from i18n folder
Actual behavior
The displayed category labels are from original (not translated) docs folder
Searching through the Discord conversations I have found advice to run npm run write-translations -- --locale
and place the translations in generated json file but searching through a file with thousands of lines seems to bit crazy, hard to believe that it is the recommended way
Your environment
Docusaurus version used: 3.6.2
Self-service
I'd be willing to fix this bug myself.
The text was updated successfully, but these errors were encountered:
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
The labels for documents work fine - the problem is with labels for catgories (folders)
Not sure how to tag this. It is either "Bug", "Feature request" or "Documentation"
In documentation I am not able to find how to translate the labels for auto-generated sidebar documentation menu.
Reproducible demo
No response
Steps to reproduce
_category_.yml
filesnpm run start -- --locale fr
Expected behavior
Expect in sidebar to see the translated labels from category.yml files from i18n folder
Actual behavior
The displayed category labels are from original (not translated) docs folder
Searching through the Discord conversations I have found advice to run
npm run write-translations -- --locale
and place the translations in generated
json
file but searching through a file with thousands of lines seems to bit crazy, hard to believe that it is the recommended wayYour environment
Self-service
The text was updated successfully, but these errors were encountered: