HDDS-9571. Enable Docusaurus i18n support#446
Open
will-sh wants to merge 1 commit into
Open
Conversation
Contributor
|
Hi @will-sh thanks for adding this. Let's check with the Chinese speaking community if they are willing to maintain translations for all the documentation, or they would rather just use the English version since some things are difficult to translate and it's common for the translated docs to become out of date. @ChenSammi can you bring this up in the next APAC community sync? |
Contributor
Author
|
Thanks for the review @errose28. That's true. Multi-language support for just the site framework is easy enough, but translating every blog post would need a lot of effort to maintain. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
HDDS-9571. Enable Docusaurus i18n support
This pull request enables Docusaurus internationalization support for Simplified Chinese on the Apache Ozone Website v2 branch.
The patch adds
zh-Hansto the Docusaurus locale configuration, defines locale metadata for English and Simplified Chinese, and generates the initial Docusaurus translation scaffold underi18n/zh-Hans. It also provides initial Simplified Chinese translations for core website UI labels, including the navbar, footer, blog options, built-in theme strings, and documentation sidebar category labels.The goal is to enable the Website v2 i18n framework so the site can expose Chinese locale routes such as
/zh-Hans/. This patch does not attempt to translate every Markdown or MDX content page. Full Chinese documentation translation or migration can be handled incrementally in follow-up patches.What is the link to the Apache Jira?
https://issues.apache.org/jira/browse/HDDS-9571
How was this patch tested?
The patch was tested with the following commands: