Translate Typechecking with Proptypes page - #17
Conversation
glaucia86
left a comment
There was a problem hiding this comment.
@lucasdeassis algumas altera莽玫es a serem feitas.
Quando terminar colocar como 'Resolve Conversation' que analisaremos novamente as altera莽玫es e logo aprova莽茫o da sua contribui莽茫o. Muito obrigada.
Co-Authored-By: lucasdeassis <lucasassis413@gmail.com>
Co-Authored-By: lucasdeassis <lucasassis413@gmail.com>
glaucia86
left a comment
There was a problem hiding this comment.
LGTM 馃憤
@cezaraugusto @fjoshuajr could you please see if it's okay?
cezaraugusto
left a comment
There was a problem hiding this comment.
thanks @lucasdeassis looks good overall. left some comments
cezaraugusto
left a comment
There was a problem hiding this comment.
LGTM thanks @lucasdeassis!
| ### Valores Default de Props {#default-prop-values} | ||
|
|
||
| You can define default values for your `props` by assigning to the special `defaultProps` property: | ||
| Voc锚 pode definir valores default para suas `props` atrav茅s da atribui莽茫o 脿 propriedade especial `defaultProps`: |
There was a problem hiding this comment.
| Voc锚 pode definir valores default para suas `props` atrav茅s da atribui莽茫o 脿 propriedade especial `defaultProps`: | |
| Voc锚 pode definir valores default para suas `props` atribuindo-os 脿 propriedade especial `defaultProps`: |
A little bit more concise.
| > N贸s fornecemos [um script de codemod](/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes) para automatizar a convers茫o. | ||
|
|
||
| As your app grows, you can catch a lot of bugs with typechecking. For some applications, you can use JavaScript extensions like [Flow](https://flow.org/) or [TypeScript](https://www.typescriptlang.org/) to typecheck your whole application. But even if you don't use those, React has some built-in typechecking abilities. To run typechecking on the props for a component, you can assign the special `propTypes` property: | ||
| Na medida em que sua aplica莽茫o cresce, voc锚 pode capturar muitos bugs com checagem de tipos. Em algumas aplica莽玫es, voc锚 pode usar extens玫es do JavaScript como [Flow](https://flowtype.org/) ou [TypeScript](https://www.typescriptlang.org/) para checar os tipos de toda a sua aplica莽茫o. Por茅m, mesmo se voc锚 n茫o us谩-las, React possui algumas habilidades de checagem de tipos embutidas. Para executar a checagem de tipos nas props para um componente, voc锚 pode atribuir 脿 propriedade em especial `propTypes`: |
There was a problem hiding this comment.
| Na medida em que sua aplica莽茫o cresce, voc锚 pode capturar muitos bugs com checagem de tipos. Em algumas aplica莽玫es, voc锚 pode usar extens玫es do JavaScript como [Flow](https://flowtype.org/) ou [TypeScript](https://www.typescriptlang.org/) para checar os tipos de toda a sua aplica莽茫o. Por茅m, mesmo se voc锚 n茫o us谩-las, React possui algumas habilidades de checagem de tipos embutidas. Para executar a checagem de tipos nas props para um componente, voc锚 pode atribuir 脿 propriedade em especial `propTypes`: | |
| Na medida em que sua aplica莽茫o cresce, voc锚 pode capturar muitos bugs com checagem de tipos. Em algumas aplica莽玫es, voc锚 pode usar extens玫es do JavaScript como [Flow](https://flowtype.org/) ou [TypeScript](https://www.typescriptlang.org/) para checar os tipos de toda a sua aplica莽茫o. Por茅m, mesmo se voc锚 n茫o us谩-las, React possui algumas habilidades de checagem de tipos embutidas. Para executar a checagem de tipos nas props para um componente, voc锚 pode atribuir a propriedade especial `propTypes`: |
There was a problem hiding this comment.
the verb atribuir asks for a complement (bitransitivo). Then, if we have atribuir we need a target "object". That's why I added the "crase" to it (artigo + preposi莽茫o).
In em especial, I understood that special propTypes property meant a particular property, more towards to the match of very one translation than to the word special one.
There was a problem hiding this comment.
but is really a trick thing. Let me know if you have another POV
fjoshuajr
left a comment
There was a problem hiding this comment.
Check the comments, please.
Co-Authored-By: lucasdeassis <lucasassis413@gmail.com>
Co-Authored-By: lucasdeassis <lucasassis413@gmail.com>
Co-Authored-By: lucasdeassis <lucasassis413@gmail.com>
fjoshuajr
left a comment
There was a problem hiding this comment.
Thanks,
Looking good! 馃帀
I'll merge this then. |
* translate typechecking with proptypes page * translate "package" to "pacote" when referring to npm Co-Authored-By: lucasdeassis <lucasassis413@gmail.com> * Update "built-in" translation to "nativas" Co-Authored-By: lucasdeassis <lucasassis413@gmail.com> * change translation on "React component class" * adding common english terms in parenthesis * Update "using" translation Co-Authored-By: lucasdeassis <lucasassis413@gmail.com> * Update "defaultProps" gender translation Co-Authored-By: lucasdeassis <lucasassis413@gmail.com> * Update url to babel plugin reference Co-Authored-By: lucasdeassis <lucasassis413@gmail.com>
#1