Add i18n support to martin book #1781
Replies: 4 comments 1 reply
-
I'd prefer not to add this. Writing documentation is already challenging, and keeping a French version up to date—especially since I'm not very confident in the language—isn't something I feel I can take on right now. |
Beta Was this translation helpful? Give feedback.
-
‘Fr’ is just an example. The i18n support doesn’t mean we’re adding the full French documentation(or any other language). But we could attract contributions to translation maybe if we add it. I'd love to add translation to zhCN. |
Beta Was this translation helpful? Give feedback.
-
on one hand, more documentation is always good. On the other, I am worried that we won't be able to maintain it properly, and it will cause more harm than good because different languages will have less information than english... |
Beta Was this translation helpful? Give feedback.
-
You are right. We have no too many contributors to maintain them. Just want to help many friends they don't like to read English docs loll. Anyway I'm open to this. We would do that when people ask it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Solution 1
The most simplest way is just copy
.md
files to another directory like:Solution 2
Sadly
mdbook
not support i18n natively, see this issueAdd translation with google/mdbook-i18n-helpers
Installation and init workspace
Install
Init
Add translation file for French
The translated fr.po would be something like this
Translate to French
download and use Poedit to edit
fr.po
fileBuild and serve and CI
Get inspiration here
Beta Was this translation helpful? Give feedback.
All reactions