From 0d5c6769c7bf8632e80a3d9a13665a110c4ee3e1 Mon Sep 17 00:00:00 2001
From: Juan Felipe Rada <63562282+Radapls@users.noreply.github.com>
Date: Fri, 31 Mar 2023 12:34:05 -0300
Subject: [PATCH] docs: Add translate file to section (#648)
* docs: Add translate file to section
* Update option.md
* Apply suggestions from code review
---------
Co-authored-by: Rainer Martinez
---
.../reference/react-dom/components/option.md | 47 +++++++++----------
1 file changed, 23 insertions(+), 24 deletions(-)
diff --git a/beta/src/content/reference/react-dom/components/option.md b/beta/src/content/reference/react-dom/components/option.md
index be1db0d61..082847dbf 100644
--- a/beta/src/content/reference/react-dom/components/option.md
+++ b/beta/src/content/reference/react-dom/components/option.md
@@ -4,12 +4,12 @@ title: ""
-The [built-in browser `` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option) lets you render an option inside a [``](/reference/react-dom/components/select) box.
+El [componente integrado `` del navegador](https://developer.mozilla.org/es/docs/Web/HTML/Element/option) te permite mostrar una opción dentro de un cuadro [``](/reference/react-dom/components/select).
```js
- Some option
- Other option
+ Alguna opción
+ Otra opción
```
@@ -19,44 +19,44 @@ The [built-in browser `` component](https://developer.mozilla.org/en-US/
---
-## Reference {/*reference*/}
+## Referencia {/*reference*/}
### ` ` {/*option*/}
-The [built-in browser ` ` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select) lets you render an option inside a [``](/reference/react-dom/components/select) box.
+El [componente integrado `` del navegador](https://developer.mozilla.org/es/docs/Web/HTML/Element/option) te permite mostrar una opción dentro de un cuadro [``](/reference/react-dom/components/select).
```js
- Some option
- Other option
+ Alguna opción
+ Otra opción
```
-[See more examples below.](#usage)
+[Mira más ejemplos a continuación.](#usage)
#### Props {/*props*/}
-`` supports all [common element props.](/reference/react-dom/components/common#props)
+` ` es compatible con todas las [props de elementos comunes.](/reference/react-dom/components/common#props)
-Additionally, ` ` supports these props:
+Además, ` ` admite estas props:
-* [`disabled`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option#disabled): A boolean. If `true`, the option will not be selectable and will appear dimmed.
-* [`label`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option#label): A string. Specifies the meaning of the option. If not specified, the text inside the option is used.
-* [`value`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option#value): The value to be used [when submitting the parent `` in a form](/reference/react-dom/components/select#reading-the-select-box-value-when-submitting-a-form) if this option is selected.
+* [`disabled`](https://developer.mozilla.org/es/docs/Web/HTML/Element/option#attr-disabled): Un booleano. Si es `verdadero`, la opción no se podrá seleccionar y aparecerá atenuada.
+* [`label`](https://developer.mozilla.org/es/docs/Web/HTML/Element/option#attr-label): Una string. Especifica el significado de la opción. Si no se especifica, se utiliza el texto dentro de la opción.
+* [`value`](https://developer.mozilla.org/es/docs/Web/HTML/Element/option#attr-value: El valor que se usará [al enviar el `` padre en un formulario](/reference/react-dom/components/select#reading-the-select-box-value-when-submitting-a-form) si se selecciona esta opción.
-#### Caveats {/*caveats*/}
+#### Advertencias {/*caveats*/}
-* React does not support the `selected` attribute on ``. Instead, pass this option's `value` to the parent [``](/reference/react-dom/components/select#providing-an-initially-selected-option) for an uncontrolled select box, or [``](/reference/react-dom/components/select#controlling-a-select-box-with-a-state-variable) for a controlled select box.
+* React no admite el atributo `selected` en ``. En su lugar, pasa el `value` de esta opción al padre [``](/reference/react-dom/components/select#providing-an-initially-selected-option) para un cuadro de selección no controlado, o [``](/reference/react-dom/components/select#controlling-a-select-box-with-a-state-variable) para un cuadro de selección controlado.
---
-## Usage {/*usage*/}
+## Uso {/*usage*/}
-### Displaying a select box with options {/*displaying-a-select-box-with-options*/}
+### Mostrar un cuadro de selección con opciones {/*displaying-a-select-box-with-options*/}
-Render a `` with a list of `` components inside to display a select box. Give each ` ` a `value` representing the data to be submitted with the form.
+Representa un `` con una lista de componentes `` dentro para mostrar un cuadro de selección. Asigna a cada ` ` un `value` que represente los datos que se enviarán con el formulario.
-[Read more about displaying a `` with a list of `` components.](/reference/react-dom/components/select)
+[Obtén más información sobre cómo mostrar un `` con una lista de componentes ``.](/reference/react-dom/components/select)
@@ -66,9 +66,9 @@ export default function FruitPicker() {
Pick a fruit:
- Apple
- Banana
- Orange
+ Manzana
+ Banano
+ Naranja
);
@@ -79,5 +79,4 @@ export default function FruitPicker() {
select { margin: 5px; }
```
-
-
+