[docs] Add internationalization#13066
[docs] Add internationalization#13066mbrookes merged 9 commits intomui:masterfrom mbrookes:docs-i18n
Conversation
| import { loadCSS } from 'fg-loadcss/src/loadCSS'; | ||
| import acceptLanguage from 'accept-language'; | ||
|
|
||
| acceptLanguage.languages(['en', 'zh']); |
There was a problem hiding this comment.
I'd suggest we constrain this to en for now, get the CrowdIn l10n branch going to accept ,Chinese translations, and once we have critical mass, add zh back. We could then add a "request for translation" (with a link to CrowdIn) at the top of any *-zh.md that are still in English.
There was a problem hiding this comment.
Should we have a menu to switch better the different languages? I think that shipping the en and zh languages with an edit button would help a lot engaging the Chinese community in the translation.
There was a problem hiding this comment.
Possibly, but offering an alternative translation when there is none is a false promise, which ever way it's enabled. Better to start with the users who have offered to translate, and a notification based call-to-action first, then make it live when there is some substance, and proof of future intent for others to get behind.
|
I see I broke some things, but I'm 😪 . I'll look again tomorrow. |
|
Ah, thanks. Wondered what was going on there! |
|
The prettier error that is breaking |
This PR provides the ability to render localized versions of the documentation markdown files, according to the user's language preferences.
Note: API docs and a handful repo "README" based pages are not currently supported. This is by design - API docs translation will be phase two, once we have proven the approach against structurally simpler (from a markdown perspective) files.
#9511