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

docs(pt-br): translate option page #687

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

veri-mm
Copy link

@veri-mm veri-mm commented May 12, 2023

Traduz a página option

Issue para referência #555

Copy link
Contributor

@NivaldoFarias NivaldoFarias left a comment

Choose a reason for hiding this comment

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

Quase redondinho!! Só alguns ajustes mesmo.

@@ -4,7 +4,7 @@ title: "<option>"

<Intro>

The [built-in browser `<option>` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option) lets you render an option inside a [`<select>`](/reference/react-dom/components/select) box.
O [componente `<option>` nativo do navegador](https://developer.mozilla.org/pt-BR/docs/Web/HTML/Element/option) permite que você renderize uma opção dentro de uma caixa de seleção [`<select>`](/reference/react-dom/components/select).
Copy link
Contributor

Choose a reason for hiding this comment

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

apontar pras docs traduzidas ao invés das comuns foi genial, não tinha feito essas alterações até agora. Roubei a ideia.


#### Props {/*props*/}

`<option>` supports all [common element props.](/reference/react-dom/components/common#props)
`<option>` suporta todas as [props comuns dos elementos.](/reference/react-dom/components/common#props)
Copy link
Contributor

Choose a reason for hiding this comment

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

esse é um que facilmente passa despercebido, mas depois ao ler, soa bem estranho. Algumas alternativas que uso quando preciso traduzir supports:

  • "oferece suporte"
  • "possui suporte"
  • "permite o uso"
  • etc. (cabe ao contexto tb)


Additionally, `<option>` supports these props:
Além disso, `<option>` suporta as seguintes props:
Copy link
Contributor

Choose a reason for hiding this comment

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

Mesmo caso relacionado a tradução de supports


Render a `<select>` with a list of `<option>` components inside to display a select box. Give each `<option>` a `value` representing the data to be submitted with the form.
Renderize um `<select>` com uma lista de componentes `<option>` dentro para exibir uma caixa de seleção. Atribua a cada `<option>` um `<value>` representando os dados a serem submetidos com o formulário.
Copy link
Contributor

Choose a reason for hiding this comment

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

<value> deveria constar value


* React does not support the `selected` attribute on `<option>`. Instead, pass this option's `value` to the parent [`<select defaultValue>`](/reference/react-dom/components/select#providing-an-initially-selected-option) for an uncontrolled select box, or [`<select value>`](/reference/react-dom/components/select#controlling-a-select-box-with-a-state-variable) for a controlled select.
* O React não suporta o atributo `selected` em `<option>`. Em vez disso, passe o `value` da opção ao componente pai [`<select defaultValue>`](/reference/react-dom/components/select#providing-an-initially-selected-option) para uma caixa de seleção não controlada, ou [`<select value>`](/reference/react-dom/components/select#controlling-a-select-box-with-a-state-variable) para uma caixa de seleção controlada.
Copy link
Contributor

@NivaldoFarias NivaldoFarias May 13, 2023

Choose a reason for hiding this comment

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

Mesmo caso relacionado a tradução de supports

@veri-mm
Copy link
Author

veri-mm commented May 15, 2023

@NivaldoFarias obrigada pela review!

@jhonmike jhonmike added the 🌐 translated Translation is completed for this page label May 22, 2023
@github-actions
Copy link

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 93.63 KB (🟢 -9.53 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Four Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/404 76.78 KB (🟡 +816 B) 170.41 KB
/500 76.77 KB (🟡 +814 B) 170.4 KB
/[[...markdownPath]] 78.3 KB (🟡 +821 B) 171.92 KB
/_error 194 B (🟡 +12 B) 93.81 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 10% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

@jhonmike
Copy link
Member

atualiza a branch com a main, parece que a versão do node no package esta desatualizada

@jhonmike jhonmike added needs author response Changes requested needing author's input and removed 🌐 translated Translation is completed for this page labels May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs author response Changes requested needing author's input
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants