Document Translation
nikogu opened this issue ยท 45 comments
We just finished most of translate jobs and published at pro.ant.design, welcome to visit it and review the translation. Give us PR if you find any typos. ๐
Volunteer Wanted
Hey, guys! We are going to provide English documentation.
But we are short of staff :-( So, we want some volunteers to help us to translate antd's documentation into English. Every translation task needs a translator and a reviewer. Both of them are expected that they had used the component(AvatarLsit
PageHeader
etc...) in real world.
Translator
A translator should be familiar with both Chinese and English.
If you want to be a volunteer translator, just comment this issue. For example, "I want to be the translator of button and alert ....". And then, we will update this issue(e.g. button (translator: @afc163 , reviewer: @ddcat1115 )), and ping you.
Premise:
- ant-design-pro-site is our site of Ant Design Pro and it is repository witch docs here.
- ant-design-pro is ant-design-pro-site's submodule, it contains component's docs.
Contributing:
- Fork
- docs: ant-design-pro-site and
git clone
- components: ant-design-pro and
git clone
- docs: ant-design-pro-site and
- Create a branch starting at
master
and name it astranslation-[xxx]
npm install && npm start
, see: Development- Find Markdown files and the
index.md
anddemo/*.md
use different format, see: ant-design/ant-design#1423- docs: under
/docs
- components: under
/scaffold/src/components/xxx
(xxx is the component which you need to translate)
- docs: under
- Just translate it, and you had better read our advice first.
- Create a pull request when your translation is done, and ping your reviewer.
- docs: request to
ant-design-pro-site:master
- components: request to
ant-design-pro:master
- docs: request to
- PR will be merged, if your reviewer think it is OK.
See:
- https://github.com/ant-design/ant-design/tree/master/components/button
- https://github.com/ant-design/ant-design/blob/master/components/button/demo/basic.md
Reviewer
A reviewer should be a native English speaker.
If you want to be a volunteer reviewer, just comment this issue. For example, "I want to be the reviewer of button and alert...". And then, we will update this issue(e.g. button (translator: @afc163 , reviewer: @ddcat1115 )), and ping you.
After your corresponding translator finish his/her work, you should review and provide some advice.
Example
TODOs
/docs
- api-doc.md ( translator: @yesmeck )
- authority-management.md ( translator: @chenshuai2144 )
- biz-icon.md ( translator: @ddcat1115 )
- changelog.md ( translator: @ddcat1115 )
- cli.md ( translator: @viztor )
- deploy.md ( translator: @yesmeck )
- error.md ( translator: @nikogu )
- faq.md ( translator: null)
- getting-started.md
- getting-start-inner.md
- graph.md (translator: @RaoHai)
- i18n.md ( translator: @viztor )
- import.md ( translator: null)
- layout.md ( translator: @viztor )
- mock-api.md ( translator: @afc163 ) ant-design/ant-design-pro-site#156
- new-component.md ( translator: @afc163 ) ant-design/ant-design-pro-site#157
- new-page.md ( translator: @valleykid )
- resource.md ( translator: @nikogu )
- router-and-nav.md ( translator: @ddcat1115 )
- server.md ( translator: @valleykid )
- style.md( translator: @yutingzhao1991 ) ant-design/ant-design-pro-site#148
- theme.md ( translator: @nikogu )
- ui-test.md ( translator: @yutingzhao1991 ) ant-design/ant-design-pro-site#151
- use-components-alone.md ( translator: @dengfuping )
/components
- AvatarList (translator: @nikogu)
- Charts (translator: @RaoHai)
- CountDown (translator: @nikogu)
- DescriptionList ( translator: @ddcat1115 )
- Exception ( translator: @ddcat1115 )
- FooterToolbar ( translator: @dengfuping )
- GlobalFooter ( translator: @MrPeak )
- HeaderSearch ( translator: @MrPeak )
- NoticeIcon ( translator: @MrPeak )
- NumberInfo
- Ellipsis
- PageHeader
- Result
- TagSelect
- Trend
- Authorized ( translator: @chenshuai2144 )
- Login
Thanks for taking the time to translate the documentation!
This is really great. Our UX team brought Ant Design to us and asked if we could use this on a new project. The design and engineering decisions I have learned about across all of the ant design projects are amazing and I would love to use and participate but by ability to read or write Chinese is non-existent.
@afc163 thanks for mentioning me
I might want to take getting started.
ant-design/ant-design-pro-site#107
review needed for getting-started.md:
@gardner In case you might want to lend a helping hand.
@viztor all of the language was technically correct. I don't know how to describe it other than English with Chinese characteristics. There were a few things that were understandable but sounded non-native. I took a pass at updating it and submitted a PR here: ant-design/ant-design-pro-site#112
I don't understand Chinese but as a native Californian I am happy to help with translation however I can. :)
The current way the docs are organized leaves a little to be desired. I am new to bisheng so I will read up on it and see if there is a way to modularize translations a bit better. I know some folks that may be able to help out with other languages.
Hi, just came across ant design pro, great work! I am a product designer on the Design System team at Eventbrite, based in San Francisco, and would like to help translating layout.md
. Let me know :)
@sundaisun Hi, already working on Layout.md, forgot to mention it here.
@nikogu also i18n.md and cli.md are ready for review.
Hello! First of all, thanks for the great template!
This issue is about documentation translation, but I don't want to open the separate one for the template translation. I have written a short script to automatically translate the cloned template into English with Google. Here it is:
REGEXP='\p{Han}[\p{Han}|\s|,|ใ|๏ผ|\.|โ|โ|0-9|a-z|A-Z|-|-|:|๏ผ]*';
rg --color never "$REGEXP" -o --vimgrep src | sed -r "s|([^:]+):([^:]+):([^:]+):(.+)|STR='\4'; sed -i \"\2s/\$STR/\$\(trans --brief zh:en \\\"\$STR\\\"\)/\" $(pwd)/\1;|g" > /tmp/translate.sh;
rg --color never "$REGEXP" -o --vimgrep mock | sed -r "s|([^:]+):([^:]+):([^:]+):(.+)|STR='\4'; sed -i \"\2s/\$STR/\$\(trans --brief zh:en \\\"\$STR\\\"\)/\" $(pwd)/\1;|g" >> /tmp/translate.sh;
sh /tmp/translate.sh;
Dependencies: Translate Shell, ripgrep
macOS users should update to the GNU sed
firtst:
brew install --with-default-names gnu-sed
The result is rather acceptable - translation is not ideal, of course, but at lease it enables Chinese non-speaker to start with.
Hope it helps to someone :)
Edit: translate
within the commands changed to the more common trans
.
Edit2: macOS instruction added.
Hi, thanks for providing such amazing ant design pro!
I'm a frontend developer who has been using ant design a lot, love it!
I'd like to translate on faq.md && theme.md
Can CET-6 have a try๏ผ
@B1anker Of course.
you can translate and then pr
I can take biz-icon.md
, deploy.md
, error.md
, faq.md
.
I can help in making demos in english. In ant-design the demos have data in english and I can convert that within week if it's required.
@bunshar ๅฝ็ถ้่ฆไบ
@bunshar, my script above translates demo data. For me it seems that it could be too early for the fine tuned manual translation as the product is still in active development stage. However, I could be wrong :)
Hello, I would like to help with translation. Are you folks trying to get all the documentation translation done by the time Ant Pro 1.0 is released?
Also i'm currently translating the Ant Pro component data, and also mock data so that the Dashboard can be displayed in English. Should I put the translation of mock data and ant pro sample components in a new 'english' branch?
@nikogu
Thanks!
Edit: Oops didn't see the awesome work that @priezz did with the script. Don't want to do double duty with the demo translations since @bunshar said he could do it, so i'll wait for further coordination.
I will start translating components in the ant-design-pro repo, going to start with Charts!
Edit: Just created a PR for translated Charts components. Would like a review, thanks!
Edit: I was also wondering, does the release of Ant Design Pro 1.0 have a hard dependency on translating docs to English? Or would it be possible that Ant Pro 1.0 gets released first, and Pull Requests for translations can come in later? Thanks!
Nice script @priezz !
Needed some changes to get it to run in Mac so sharing that
Translate script for mac users as sed in mac is not same as sed in gnu
install with - brew install --with-default-names gnu-sed
and then use that. Also the translate
doesn't work but trans
does
REGEXP='\p{Han}[\p{Han}|\s|,|ใ|๏ผ|\.|โ|โ|0-9|a-z|A-Z|-|-|:|๏ผ]*';
rg --color never "$REGEXP" -o --vimgrep src | gsed -r "s|([^:]+):([^:]+):([^:]+):(.+)|STR='\4'; gsed -i \"\2s/\$STR/\$\(trans --brief zh:en \\\"\$STR\\\"\)/\" $(pwd)/\1;|g" > /tmp/translate.sh;
rg --color never "$REGEXP" -o --vimgrep mock | gsed -r "s|([^:]+):([^:]+):([^:]+):(.+)|STR='\4'; gsed -i \"\2s/\$STR/\$\(trans --brief zh:en \\\"\$STR\\\"\)/\" $(pwd)/\1;|g" >> /tmp/translate.sh;
sh /tmp/translate.sh;
@bunshar, thank you for your addition! You are right, unfortunately mac's sed
is not gnu-compatible.
However, with --with-default-names
option, you have provided, brew
installs sed
without g
in the front. So the script stays unchanged. I also update translate
to trans
in the initial script as it is their recommended command name.
The issue is that this breaks my ability to keep the repo in sync as there are so many changes.
I think this is the right time to start translation. The script is a good starting point and will save quite a lot of effort.
@lorecrafting The Ant Design Pro 1.0 do not rely on the translation work, and only some of the guide docs may be changed after the 1.0 release. As for components, you can start your translation at anytime ๐
I can help on " use-components-alone.md" translation if it is not taken yet. And thank you for the great framework!
Update: I already finished and created a pull request since it was a short page. It is open for review.
@afc163 I'd Like to join the translation team!โบโบโบ
@afc163, me too! English native with some basic Chinese(lacking mandarin grammar, something I guess the reviewers can handle). Wishing to jump on the translation team.
I would love to be a translator for this project, really enjoy antd and antdpro, want to contribute more.
Some docs have been updated(since v1.0) and we can restart our translation ๐ฆ
Can we start a Trello board to keep track of the translation effort between multiple versions and projects? Having to track down PRs and issues just to find the latest work progress is simply not efficient, and here is case study of how Trello used Trello to manage the translation process: http://www.oneskyapp.com/blog/trello-localization-global-marketing/
The issues in ant-design repo seem to reference this issue for tracking the translation of specs as well? I'm just lost in the translation works for ant-design spec, ant-design components, and ant-design pro. Having a globally accessible Trello should help a lot with this process.
Thanks!
I am also a big fan and and native English speaker and happy to help where I can. I should have already forked this repo before starting my latest project, but will do so now. Thank you for your great effort!
Hi, just translated the Login component and sent PR, will pick up more later :-)
I'd love to help with both review and translation. I am a technical writer, English native and Chinese bilingual writing and reading proficiency. I can start with reviewing /docs/layout.md and components/AvartarList.md. I also spotted a few small grammar errors in getting-started.md, if you'd like me to correct that too.
ๆๅฏไปฅๅธฎๅฟไธญ่ฑ็ฟป่ฏๅไฟฎๆน่ฑๆ็็ๆฌใไธ้ขๅไบๅ ไธชmdๆฏๆๅฏไปฅๅ ไฟฎๆน็ใ ๏ผๆ่ฑๆไธญๆๅ่ฏญ๏ผ็นไฝไธญๆๅ็ฎไฝไธญๆ้ฝ่ฝไธไธ่ฏปๅ๏ผ
@tchern You are very welcome! But the /docs/layout
and components/AvatarList.md
is translated and reviewed already(you can check the TODOs progress in above), you can help us to translate the other parts, just mark your name after the item you have chosen. Or you can join the review work -> to be reviewed
Sign me up. I'll help translate.
Module build failed: Error: Cannot use decorators and decorators2 plugin together
Thank you all for your translation efforts. This seems to be a very nice set of UI elements โค๏ธ
I can help translate the login part into English.
Google Translate does a pretty good job doesn't it? Why not just use that?
I can help with some translation as well, feel free to reach out and let me know what pieces I can work on!
I added README in portuguese (pt-BR), see #5438.
And i will also help to translate documentation to portuguese.
I would be happy to be a reviewer of "router-and-nav.md" if still available.
We just finished most of translate jobs and published at pro.ant.design, welcome to visit it and review the translation. Give us PR if you find any typos. ๐
Volunteer Wanted
Hey, guys! We are going to provide English documentation.
So,
How can i help translate?
what work is available?
I'm a brazilian developer and I want to join this.
I want to help translate it, but in portuguese, we have a large dev market in ascension here.
By the way, it will be a nice contribution for all.
Hello when are you going to translate Ant Design into French?
Iโm a product manager and I want to help translate it.
I'd like to translate on Result