-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help us translate the Docusaurus website #3526
Comments
I'm interested in helping out with the translation efforts for i18n! Would you be able to put more information here on what that would look like for interested folks? |
Thanks @leeyspaul. In which language are you able to translate? Basically, the work would be to use Crowdin and translate:
Very similar to v1 translation process. To get familiar with it, you can join the v1 translation project here: https://crowdin.com/project/docusaurus and submit a few translation proposals. |
@slorber I'd be able to contribute in Spanish and maybe in Korean in the future. But for now I'd like to start with Spanish. I'll check out the links and ask any questions through the discord channel. Would it be helpful for perhaps new folks looking to contribute to have a page on the localization process? Perhaps a new issue could be opened up on that. |
I could help with French, if needed. |
Thanks. I'm French so would be able to translate it in French but still help is welcome 👍 @leeyspaul the localization process does not exist yet. We'll actually write it from practical experience traducting the Docusaurus site. There are multiple things to figure out, including Crowdin recommended settings etc... |
Totally! Happy to help brainstorm with a proposal of sorts if you're looking to do that. @slorber |
I could help with spanish. This feature is a must |
I can help you with Bengali |
Hi @slorber, Thanks |
@slorber Im happy to help with German translations. Already signed up in Crowdin. I dont see any German folder to start from. Thanks |
Thanks everyone, I've just enabled German, Spanish and Bengali on Crowdin. @shaonkabir8 @iamrubayet I've enabled Bengali too, but there are 2 options so let me know if I didn't select the best one: |
Can help with Simplified Chinese (zh-cn) translation here. |
Thanks @f0rb1d , just enabled it: https://crowdin.com/project/docusaurus-v2/zh-CN |
Hello! Greetings from Brazil! Portuguese (pt-br) is not in the list but I would be really happy to help translating it!
That will depend, but for sure I can get more people for help and have it in 100%. |
Thanks, enabled :) https://crowdin.com/project/docusaurus-v2/pt-BR |
@slorber I am happy to help with Ukrainian translation. |
@slorber Hi there. Lots of content have been translated since I commented. I want to see preview and adjust translations based it. Could you please also enable the language on the website? Thank you in advance. |
Hi @f0rb1d Unfortunately, I don't see much content that has been translated so far. I think we don't want to put online translations that are mostly incomplete, but rather have a minimum threshold to put the translated site online, maybe around 30%, and ensure at least the homepage + introduction pages are fully translated? About the preview, unfortunately, you can't have it easily locally because afaik Crowdin only allow project managers to download the translations through their cli, and I can't create any read-only/project-specific API key that I can securely share. If someone is actively working on translations and want to have previews, just ask after at least 5%/10% of translations have been done, and I'll add such locales to a separate i18n work-in-progress deployment |
@slorber Hi ! 👋 Greetings from Japan 🗻 🗾 🏯 👺 I couldn't find the Japanese folder, so I will help you with the translation as soon as the subfolder is added. p.s. |
@Ningensei848 I've enabled japanese here: https://crowdin.com/project/docusaurus-v2/ja |
Hi @slorber, I can help with Traditional Chinese (zh-hant). Thanks. |
hey italian guy here! |
Japanese now meets all the criteria. P.S. |
Thanks for your work on this @tats-u Due to recent changes on Crowdin and Netlify I have to adjust a bit our translation workflows and versioning archive procedure, so it's not a great timing right now to enable a new language, but we'll do this when I figure it out. |
Recently I was working in the Spanish version but I can understand how the platform works in some strings shows 1/2 and then turns into 1/163. |
@CarlosMarinAquino I don't understand what you mean here 😅 screenshot? |
I'm working on Bangla localization. Could you please let me know how do I push the changes to test app? @slorber |
@Zubiii333 by Bangla you mean Bengali / bn right? As explained in the intro post, you can't test it locally, and we ask you to first translate at least 10% on Crowdin before turning your local on in our preview environment. Currently Bengali is at 0% translated: https://crowdin.com/project/docusaurus-v2/bn |
The build of https://docusaurus-i18n-staging.netlify.app/ has been broken for a long time, hasn't it? |
it seems working-well currently, i've visiting it by now |
@yuxxeun |
Yes. Fixing an issue that prevents the build to even start:
What's the point here? The build logs are public: https://app.netlify.com/sites/docusaurus-i18n-staging/deploys The project is open-source and you can submit a PR or translation fixes if you see it failing, or kindly report them if we didn't notice. Even with my PR above, I'm not sure it will fix every issues, we'll see. Edit, apparently no translation problem and i18n staging is now able to build again: |
@slorber It's just because it was too difficult and expected to take too much time for me to specify the trouble spot from the error logs. I never expected that spot to be the culprit. Thanks a lot for fixing the issue on behalf of me. |
Some languages are better translated than Japanese. How about adding them to the staging site? |
There's a cost for me to adding any language in terms of maintenance (when i18n staging is blocked due to a bad translation, happens often and hard to debug) and adding languages can also add time to the CI builds (and we are already close to the max build time on Netlify). Unless they request it, until I find a solution to these problems I am cautious when adding new languages, in both prod and staging. For example if I release v3.0, I don't want the prod deployment to be stuck due to having added a new language in staging just before. This is the kind of risk we encounter right now with the current setup. |
I am excited to inform you that I have commenced work on the Greek translation for the project. I will be actively updating my progress on Crowdin and look forward to contributing to making Docusaurus more accessible to Greek-speaking users. I'll provide updates and reach out if I encounter any issues or need further guidance! |
@slorber Hi! I would really love to contribute and help with Turkmen language (tm) 🙋🏻♀️ It is not available in Crowdin 😞 |
@ilmedova |
@tats-u got it, thanks |
@ilmedova Let's wait a response from maintainers |
@ilmedova thanks, Turkmen has been enabled here: https://crowdin.com/project/docusaurus-v2/tk |
@slorber There are too few Chinese translations, do you still need simplified Chinese translation |
Count me in for the Thai translation🇹🇭 |
Thanks, Thai is now enabled: https://crowdin.com/project/docusaurus-v2/th
I don't "need" translations. If the community contributes translations for their country, then this increases the adoption of Docusaurus in that country, that's all. |
Last updated: 05/10/2023
Help us translate the Docusaurus 2 website
The Docusaurus 2 i18n support is ready, and it's time for Docusaurus 2 website to be translated
This issue is here to organize the translation effort.
Translation process
Theme default translations
The classic theme ships with some default translation bundles for theme labels, like "next" / "previous" pagination buttons...
Please help us provide/complete/double-check the default theme label translations for your own language:
https://github.com/facebook/docusaurus/tree/main/packages/docusaurus-theme-translations/locales
Existing language
If your language already exists in the folder above, please edit the files with completed or more accurate translations.
New language
If your language does not exist, you will need to create it from scratch.
You have 2 options:
yarn workspace @docusaurus/theme-translations update <newLanguage>
(more info here)base/**.json
file as<newLanguage>/**.json
, and remove the___DESCRIPTION
attributes.In most cases, use a simple language code like
fr
ores
for<newLanguage>
, and use locales such aspt-BR
andpt-PT
when the difference between the 2 variants is strong enough.Use appropriate pluralization
Note: some languages have complex plural rules. Make sure the pluralized labels (containing a
|
) contain as many variants as your locale has plural rules (number of cardinal categories).Run this code in your browser to obtain the plural forms of any locale/language:
Note: the order of plural forms in the translation string matters.
Files to translate on Crowdin
Please translate in priority:
website/i18n/en
files (layout/homepage JSON files)website/community
md fileswebsite/docs
md filesPlease be careful for:
:::tip
(and other admonition keys) should not be translated, but:::tip myTitle
should be translated as:::tip myTranslatedTitle
Please do not translate for now:
Preview your translation work
Unfortunately, it is not possible for you to test the translated site locally (the Crowdin auth system is not very flexible)
If you are actively working on a locale, please ask to add that locale to our i18n staging deployment:
curl -X POST -d {} https://api.netlify.com/build_hooks/602511032ce0923d1b6cd220
(manually for now)Please translate at least 10% before asking for enabling your locale in this staging deployment.
Production
We ask for a minimal amount of translations to be reached:
website/i18n/en
> 90%website/community
> 40%website/docs
> 20%Once a locale has enough translations, and the preview looks good on the i18n staging environment, we'll add it to our production site.
Thanks for your help 😃
The text was updated successfully, but these errors were encountered: