-
Notifications
You must be signed in to change notification settings - Fork 1.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
[PT-BR] Translation of JSX.md file #1421
[PT-BR] Translation of JSX.md file #1421
Conversation
Thanks for the PR! This section of the codebase is owned by @khaosdoctor and @danilofuchs - if they write a comment saying "LGTM" then it will be merged. |
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.
missing some translations
|
||
Você pode especificar esse modo usando tanto a flag na linha de comando `--jsx` ou a opção [`jsx` correspondente no seu arquivo tsconfig.json](/tsconfig#jsx). | ||
|
||
> \*Note: Você pode especificar a função factory JSX para usar quando direcionar react JSX com a opção `--jsxFactory` (padrão para `React.createElement`) |
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.
> \*Note: Você pode especificar a função factory JSX para usar quando direcionar react JSX com a opção `--jsxFactory` (padrão para `React.createElement`) | |
> Nota: Você pode especificar a função factory JSX para usar quando direcionar react JSX com a opção `--jsxFactory` (padrão para `React.createElement`) |
|
||
No exemplo acima, `<foo />` vai funcionar bem, mas `<bar />` resultará em um erro, pois não foi especificado em `JSX.IntrinsicElements`. | ||
|
||
> Note: Você também pode especificar um indexador de string abrangente em `JSX.IntrinsicElements` do seguinte modo: |
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.
> Note: Você também pode especificar um indexador de string abrangente em `JSX.IntrinsicElements` do seguinte modo: | |
> Nota: Você também pode especificar um indexador de string abrangente em `JSX.IntrinsicElements` do seguinte modo: |
); | ||
``` | ||
|
||
Because a Function Component is simply a JavaScript function, function overloads may be used here as well: |
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.
Missing translation here
} | ||
``` | ||
|
||
> Note: Componentes de Função eram anteriormente conhecidos como Stateless Function Components (SFC). Como Function Components não pode mais ser considerado sem estado nas versões recentes do react, o tipo `SFC` e seu alias `StatelessComponent` foram descontinuados. |
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.
> Note: Componentes de Função eram anteriormente conhecidos como Stateless Function Components (SFC). Como Function Components não pode mais ser considerado sem estado nas versões recentes do react, o tipo `SFC` e seu alias `StatelessComponent` foram descontinuados. | |
> Nota: Componentes de Função eram anteriormente conhecidos como Stateless Function Components (SFC). Como Function Components não pode mais ser considerado sem estado nas versões recentes do react, o tipo `SFC` e seu alias `StatelessComponent` foram descontinuados. |
<foo requiredProp="bar" some-unknown-prop />; // ok, because 'some-unknown-prop' is not a valid identifier | ||
``` | ||
|
||
> Note: Se um nome de atributo não for um identificador JS válido (como um atributo `data-*`), não é considerado um erro se não for encontrado no tipo de atributos do elemento. |
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.
> Note: Se um nome de atributo não for um identificador JS válido (como um atributo `data-*`), não é considerado um erro se não for encontrado no tipo de atributos do elemento. | |
> Nota: Se um nome de atributo não for um identificador JS válido (como um atributo `data-*`), não é considerado um erro se não for encontrado no tipo de atributos do elemento. |
Co-authored-by: Lucas Santos <[email protected]>
@WeslleyLuiz if you could please finish these changes before Jan 25th it'd be great! So we can proceed with the merging :) (#233 (comment)) |
Sorry for the delayed commit |
lgtm |
Merging because @khaosdoctor is a code-owner of all the changes - thanks! |
As of #233
@khaosdoctor, @alvarocamillont, @danilofuchs e @orta