-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[docs] Sync translations #20779
[docs] Sync translations #20779
Conversation
|
||
1. Usar [`React.cloneElement()`](https://reactjs.org/docs/react-api.html#cloneelement) | ||
1. Usar [`React.cloneElement()`](https://pt-br.reactjs.org/docs/react-api.html#cloneelement) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting! @jaironalves, @DDDDDanica. I like how React keeps the same hash for the headers between locales. Material-UI doesn't, which makes language negotiation harder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @oliviertassinari ,
If I understand the structure of their documentation well, they have a language repository, made in Gastby.
https://github.com/reactjs/reactjs.org
https://github.com/reactjs/pt-BR.reactjs.org
They synchronize via a bot between the main repository. The community then works to resolve conflicts and translations.
So, each one is a different publication. At least that's what I understood.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaironalves Thanks for the link, I was comparing
- https://reactjs.org/docs/react-api.html#cloneelement
- https://zh-hans.reactjs.org/docs/react-api.html#cloneelement
vs
- https://material-ui.com/components/rating/#simple-ratings
- https://material-ui.com/zh/components/rating/#%E7%AE%80%E5%8D%95%E8%AF%84%E5%88%86
I believe we should have https://material-ui.com/zh/components/rating/#simple-ratings instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgive me for not understanding,
They use the notation below in the .md files
Ferramentas recomendadas {#tools} - pt-Br
Recommended Tools {#tools} - en-US
That way they keep the same reference to #tools. I believe that the documentation here would need to follow the same logic or something similar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at your answer I think that you understood correctly what I had in mind :). I wouldn't worry at the implementation side, it's relatively straightforward to make happen. Now, considering what React did, this sounds like something we want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So should we open a new issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could, yes :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened #20829 :)
Details of bundle changes.Comparing: cbae0f8...59460ff Details of page changes
|
No description provided.