Skip to content
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

Merged
merged 5 commits into from
Jan 14, 2021
Merged

[PT-BR] Translation of JSX.md file #1421

merged 5 commits into from
Jan 14, 2021

Conversation

weslleymurdock
Copy link
Contributor

@github-actions
Copy link
Contributor

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.

@weslleymurdock weslleymurdock changed the title Translation of JSX.md file [PT-BR] Translation of JSX.md file Dec 20, 2020
@weslleymurdock weslleymurdock marked this pull request as ready for review December 20, 2020 06:16
Copy link
Contributor

@khaosdoctor khaosdoctor left a 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`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> \*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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> 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:
Copy link
Contributor

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> 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.

@khaosdoctor
Copy link
Contributor

@WeslleyLuiz if you could please finish these changes before Jan 25th it'd be great! So we can proceed with the merging :) (#233 (comment))

@weslleymurdock
Copy link
Contributor Author

Sorry for the delayed commit

@khaosdoctor
Copy link
Contributor

lgtm

@github-actions github-actions bot merged commit fccf7bc into microsoft:v2 Jan 14, 2021
@github-actions
Copy link
Contributor

Merging because @khaosdoctor is a code-owner of all the changes - thanks!

@weslleymurdock weslleymurdock deleted the jsx-translation-weslleyluiz branch February 1, 2021 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pt Portuguese language translation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants