[WIP] internalization support #4752
Draft
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.
This PR adds internalization support to the NiceGUI documentation, fix #4025 and generally enables multilingual display, despite our documentation created and defined using Python only.
Compared to others libraries which use Markdown, architecturally it is more of a challenge, but we also have a bit more ease just because we are maining one codebase.
Open questions:
Results:
http://127.0.0.1:8080/set_language set the language between:
en
: What we have nowcn
: What was requested in Add Simplified Chinese Documentation #4025jp
: Generally takes more space because spelling terms in Katakana is less space-efficient than English charactersde
: Concerned over extremely long words messing up the line breaking. Also Zauberzeug is a German company. As a reminder "Kraftfahrzeug-Haftpflichtversicherung" stands for "motor vehicle liability insurance"