Add i18n support and translate to Simplified Chinese#242
Add i18n support and translate to Simplified Chinese#242CosmoLau wants to merge 7 commits intooclif:docsfrom
Conversation
|
Thanks for the contribution! Before we can merge this, we need @CosmoLau to sign the Salesforce Inc. Contributor License Agreement. |
|
@CosmoLau Thanks for the PR 🏆 Sadly, we don't have the bandwidth (or literacy!) to support multiple translations of the documentation. I realize that we could rely on the community to keep the translations up to date but as far as I can tell there's not a lot of people who would be willing to update the translations as often as we update the english version. I'm going to label this with |
It's fine, I've deployed it to my github pages for myself or other Chinese developers to check out. I just have a question, can I use the APPID and APPKEY applied by oclif to provide algolia search service when I deploy it myself? I have disabled the search service for now. |
Add i18n support and translate to Simplified Chinese.
Fixed broken links from blog.
Add i18n support for the home page.
If you want to add translations for a language, you need to run
yarn run write-translations --locale [locale]first to generate the translation configuration. Then add the new locale to the i18n configuration inducosaurus.config.ts. Then, copy the English documents and blogs toi18n/[locale]/docusaurus-plugin-content-docs/current/andi18n/[locale]/docusaurus-plugin-content-blog/directories respectively for translation.To debug, you need to use
yarn run start -- --locale [locale]to test the corresponding language, or useyarn run buildandyarn run serveto see the effect of multi-language.See https://docusaurus.io/docs/i18n/introduction for more information.