Facilitate other contributors to add translation content in other national languages to the project#155
Facilitate other contributors to add translation content in other national languages to the project#155Alan3344 wants to merge 1 commit intoflet-dev:mainfrom
Conversation
1. Add automatic translation file structure generation 2. Modify the fixed string structure of src/pages to Translate 3. Modify the fixed string structure of src/components/signup-form to Translate 4. Add Chinese README.zh-CN.md 5. Modify the code in the document to include function highlighting values 6. Temporarily delete my own local preprocessing script (in order to merge the main branch)
|
Thanks for kicking it off! Are you going to add the settings for publishing Chinese version of website, like here? |
Well, if the website is internationalized into multiple languages, like This is my first time using this Python UI framework. I like it very much and recommend it to others to test use, so I'm willing to take the time to make this translation. |
|
Are you still working on this PR? |
Yes, I've been quite busy at work recently. |
This comment was marked as spam.
This comment was marked as spam.
Ok,no problem! |
New and changed instructions:
I noticed that some strings are hard-coded in the code, which makes it inconvenient for multi-language translation.
README.zh-CN.mdCurrently, all Chinese translations have been completed.
To prepare for the submission of subsequent translation content, I checked the project code and tried to keep the author's original code content as unchanged as possible, minimizing differences caused by code formatting, so there would be no conflicts.
参考地址 docusaurus.io
Problems encountered during:
/gallerypage (In addition, there are some translatable text strings in the middle. You may need to do some work to extract them.).mdfile containingexportwas changed to.mdxdue to thepreitterplug-in formatting problem, was not compiled, and the translation content was not displayed correctly (as shown in the picture) (currently only in my translation file )Hope more contributors will join in
Add fields to be translated in

src/pages/index.js:Effect: (including most spaces)

Home page

.mdxfiles are not translated, only this one