Skip to content

Commit 8ed664c

Browse files
ianaya89rigor789
authored andcommitted
Update ES version of layouts, fix typos and improve grammar. (#174)
* Translate introduction * Add es index ejs * Translate quick start * Translate installation * Translate template * Translate ns plugin * Translate vue plugins * Translate manual routing * Translate v-view * Translate dialog * Translate confirm * Translate alert * Translate activity indicator * Translate html view * Translate progress * Translate label * Fix components directory and translate switch * Translate web view * Translate button * Translate image * Translate date picker * Translage list picker * Translage list picker and time picker * Translate list view * Translate scroll view * Translate search bar * Translate confirm * Translate prompt * Add es to build process * Translate action bar * Translate action item * Transalate nav button * Translate slider * Translate tab view * Translate text field * Translate segmented bar * Translate text view * Translate absolute layout * Translate stack layout * Translate wrap layout * Translate dock layout * Translate flexbox layout * Translate grid layout * Translate v-template * Translate vue router * Translate playground tutorial * Fix typos and improve grammar * Rename index._es.ejs to index_es.ejs * update sponsors list * Update es version of absolute layout * Fix es typos and improve grammar * Update es version of dock layout * Update es version of flex layout * Make en flex layout more consistent * Update es version of grid layout * Update es version of stack layout * Update es version of wrap layout * Make en stack & wrap layouts more consistent
1 parent c68e660 commit 8ed664c

20 files changed

+189
-119
lines changed

content/docs/en/elements/layouts/flexbox-layout.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ contributors: [rigor789, ikoevska]
66

77
`<FlexboxLayout>` is a layout container that provides a non-exact implementation of the [CSS Flexbox layout](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox). This layout lets you arrange child components both horizontally and vertically.
88

9-
### Examples
9+
## Examples
1010

11-
#### Default flex layout
11+
### Default flex layout
1212

1313
The following example creates a row of three equally-sized elements that span across the entire height of the screen.
1414

@@ -21,9 +21,9 @@ The following example creates a row of three equally-sized elements that span ac
2121
```
2222
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript-vue.org/layouts/flexbox_layout_row_stretch.svg" />
2323

24-
#### Column flex layout
24+
### Column flex layout
2525

26-
The following example creates a column of 3 equally-sized elements that span across the entire width of the screen.
26+
The following example creates a column of three equally-sized elements that span across the entire width of the screen.
2727

2828
```html
2929
<FlexboxLayout flexDirection="column" backgroundColor="#3c495e">
@@ -34,9 +34,9 @@ The following example creates a column of 3 equally-sized elements that span acr
3434
```
3535
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript-vue.org/layouts/flexbox_layout_column_stretch.svg" />
3636

37-
#### Row flex layout with items aligned to `flex-start`
37+
### Row flex layout with items aligned to `flex-start`
3838

39-
The following example creates a row of 3 items placed at the top of the screen. Items are placed in the order they were declared in.
39+
The following example creates a row of three items placed at the top of the screen. Items are placed in the order they were declared in.
4040

4141
```html
4242
<FlexboxLayout alignItems="flex-start" backgroundColor="#3c495e">
@@ -47,9 +47,9 @@ The following example creates a row of 3 items placed at the top of the screen.
4747
```
4848
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript-vue.org/layouts/flexbox_layout_row_flex-start.svg" />
4949

50-
#### Row flex layout with custom order
50+
### Row flex layout with custom order
5151

52-
The following example creates a row of 3 items placed at the top of the screen. Items are placed in a customized order.
52+
The following example creates a row of three items placed at the top of the screen. Items are placed in a customized order.
5353

5454
```html
5555
<FlexboxLayout alignItems="flex-start" backgroundColor="#3c495e">
@@ -60,7 +60,7 @@ The following example creates a row of 3 items placed at the top of the screen.
6060
```
6161
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript-vue.org/layouts/flexbox_layout_row_custom_order.svg" />
6262

63-
#### Row flex layout with wrapping
63+
### Row flex layout with wrapping
6464

6565
The following example creates four items with enabled line wrapping. When the row runs out of space, the container wraps the last item on a new line.
6666

@@ -74,7 +74,7 @@ The following example creates four items with enabled line wrapping. When the ro
7474
```
7575
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript-vue.org/layouts/flexbox_layout_wrap.svg" />
7676

77-
#### Column flex layout with reverse order and items with a different `alignSelf`
77+
### Column flex layout with reverse order and items with a different `alignSelf`
7878

7979
The following example shows how to use:
8080

@@ -109,8 +109,8 @@ When an element is a direct child of `<FlexboxLayout>`, you can work with the fo
109109

110110
| Name | Type | Description |
111111
|------|------|-------------|
112-
`order` | `Number` | Sets the order in which child element appear in relation to one another.
112+
`order` | `Number` | Sets the order in which child element appear in relation to one another.
113113
`flexGrow` | `Number` | Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container.
114114
`flexShrink` | `Number` | Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to `1`.
115115
`alignSelf` | `String` | (Android-only) Overrides the `alignItems` value for the child.<br/>Valid values:<br/>`flex-start` (cross-start margin edge of the item is placed on the cross-start line),<br/>`flex-end` (cross-end margin edge of the item is placed on the cross-end line),<br/>`center` (item is centered on the cross axis),<br/>`baseline` (the item baselines are aligned), and<br/>`stretch` (items is stretched to fill the container but respects `min-width` and `max-width`).<br/>Default value: `stretch`.
116-
`flexWrapBefore` | `Boolean` | When `true`, forces the item to wrap onto a new line. This property is not part of the official Flexbox specification.<br/>Default value: `false`.
116+
`flexWrapBefore` | `Boolean` | When `true`, forces the item to wrap onto a new line. This property is not part of the official Flexbox specification.<br/>Default value: `false`.

content/docs/en/elements/layouts/stack-layout.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ contributors: [rigor789, ikoevska]
66

77
`<StackLayout>` is a layout container that lets you stack the child elements vertically (default) or horizontally.
88

9-
### Samples
9+
## Examples
1010

11-
#### Default stacking
11+
### Default stacking
1212

1313
The following example creates a vertical stack of 3 equally-sized elements. Items are stretched to cover the entire width of the screen. Items are placed in the order they were declared in.
1414

@@ -21,7 +21,7 @@ The following example creates a vertical stack of 3 equally-sized elements. Item
2121
```
2222
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript-vue.org/layouts/stack_layout_vertical.svg" />
2323

24-
#### Horizontal stacking
24+
### Horizontal stacking
2525

2626
The following example creates a horizontal stack of 3 equally-sized elements. Items are stretched to cover the entire height of the screen. Items are placed in the order they were declared in.
2727

@@ -34,7 +34,7 @@ The following example creates a horizontal stack of 3 equally-sized elements. It
3434
```
3535
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript-vue.org/layouts/stack_layout_horizontal.svg" />
3636

37-
#### Stack layout with horizontally aligned children
37+
### Stack layout with horizontally aligned children
3838

3939
The following example creates a diagonal stack of items with responsive sizes. Items are vertically stacked.
4040

@@ -52,7 +52,7 @@ The following example creates a diagonal stack of items with responsive sizes. I
5252
```
5353
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript-vue.org/layouts/stack_layout_vertical_align_children.svg" />
5454

55-
#### Horizontal stack layout with vertically aligned children
55+
### Horizontal stack layout with vertically aligned children
5656

5757
The following example creates a diagonal stack of items with responsive sizes. Items are horizontally stacked.
5858

content/docs/en/elements/layouts/wrap-layout.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ contributors: [rigor789, ikoevska]
66

77
`<WrapLayout>` is a layout container that lets you position items in rows or columns, based on the `orientation` property. When the space is filled, the container automatically wraps items onto a new row or column.
88

9-
### Samples
9+
### Examples
1010

11-
#### Default wrap layout
11+
### Default wrap layout
1212

1313
The following example creates a row of equally-sized items. When the row runs out of space, the container wraps the last item on a new row.
1414

@@ -23,7 +23,7 @@ The following example creates a row of equally-sized items. When the row runs ou
2323

2424
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript-vue.org/layouts/wrap_layout_horizontal.svg" />
2525

26-
#### Vertical wrap layout
26+
### Vertical wrap layout
2727

2828
The following example creates a column of equally-sized items. When the row runs out of space, the container wraps the last item on a new column.
2929

content/docs/es/elements/components/image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ contributors: [ianaya89]
4848

4949
| Android | iOS |
5050
|---------|-----|
51-
| [`android.widget.ImageView`](https://developer.android.com/reference/android/widget/ImageView.html) | [`UIImageView`](https://developer.apple.com/documentation/uikit/uiimageview)
51+
| [`android.widget.ImageView`](https://developer.android.com/reference/android/widget/ImageView.html) | [`UIImageView`](https://developer.apple.com/documentation/uikit/uiimageview)

content/docs/es/elements/components/list-view.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ contributors: [ianaya89]
2323

2424
El componente [`<v-template>`](/en/docs/utilities/v-template) es utilizado para definir como se va a mostrar cada elemento de la lista dentro de la pantalla.
2525

26-
Si necesitas visualizar uno o mas elementos de manera diferente al resto, puedes ingresarlos como hijos de un componente `<v-template>` y utilizar las condiciones que sean necesarias. Dentro de un `<ListView>`, puedes usar todos los `<v-template>` que creas necesarios.
26+
Si necesitas visualizar uno o más elementos de manera diferente al resto, puedes ingresarlos como hijos de un componente `<v-template>` y utilizar las condiciones que sean necesarias. Dentro de un `<ListView>`, puedes usar todos los `<v-template>` que creas necesarios.
2727

2828
```html
2929
<ListView for="item in listOfItems" @itemTap="onItemTap">

content/docs/es/elements/components/text-view.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiRef: https://docs.nativescript.org/api-reference/classes/_ui_text_view_.textv
44
contributors: [ianaya89]
55
---
66

7-
`<TextView>` es un componente de UI que muestra un contenedor de texto editable o de solo-lectura. Puedes utilizarlo para permitir que el usuario ingrese grande cantidades de texto o simplemente para mostrar texto en mas de una línea.
7+
`<TextView>` es un componente de UI que muestra un contenedor de texto editable o de solo-lectura. Puedes utilizarlo para permitir que el usuario ingrese grande cantidades de texto o simplemente para mostrar texto en más de una línea.
88

99
El componente `<TextView>` extiende a [`TextBase`](https://docs.nativescript.org/api-reference/classes/_ui_text_base_.textbase) y a[`EditableTextBase`](https://docs.nativescript.org/api-reference/classes/_ui_editor_text_base_.editabletextbase),agregando propiedades y eventos adicionales.
1010

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
---
22
title: AbsoluteLayout
33
apiRef: https://docs.nativescript.org/api-reference/modules/_ui_layouts_absolute_layout_
4+
docRef: https://docs.nativescript.org/ui/layouts/layout-containers#absolutelayout
45
contributors: [ianaya89]
56
---
67

7-
El contenedor `AbsoluteLayout` es el *layout* mas simple de NativeScript. Usa coordenadas absolutas para posicionar los componentes hijos a partir del vértice superior izquierdo.
8+
9+
El contenedor `AbsoluteLayout` es el *layout* más simple de NativeScript. Usa coordenadas absolutas para posicionar los componentes hijos a partir del vértice superior izquierdo.
810
`AbsoluteLayout` no aplicará ninguna restricción de diseño a tus elementos hijos y tampoco los redimensionará en tiempo de ejecución (cuando cambie su tamaño).
911

10-
### Ejemplos
12+
El contenedor `<AbsoluteLayout>` es el *layout* más simple de NativeScript
13+
14+
`<AbsoluteLayout>` se comporta de la siguiente forma:
15+
16+
* Usa un par de coordinadas absolutas izquierda/derecha para posicioanr los elementos hijos.
17+
* **No** fuerza ningún tipo de restricción de posicionamiento sobre los elementos hijos.
18+
* **No** redimensiona los elementos hijos en tiempo de ejecución, cuando estos cambien de tamaño.
19+
20+
## Ejemplos
1121

12-
#### Diseño de tipo grilla
22+
### Diseño de tipo grilla
23+
24+
El siguiente ejemplo crea una grilla simple. Para más información sobre *layouts* de grillas puedes ver [GridLayout](/es/docs/elements/layouts/grid-layout).
1325

1426
```html
1527
<AbsoluteLayout backgroundColor="#3c495e">
@@ -21,7 +33,9 @@ El contenedor `AbsoluteLayout` es el *layout* mas simple de NativeScript. Usa co
2133
```
2234
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript-vue.org/layouts/absolute_layout_grid.svg" />
2335

24-
#### Superponiendo elementos
36+
### Superponiendo elementos
37+
38+
El siguiente ejemplo crea un grupo de elementos que se superponen entre ellos.
2539

2640
```html
2741
<AbsoluteLayout backgroundColor="#3c495e">
@@ -31,16 +45,15 @@ El contenedor `AbsoluteLayout` es el *layout* mas simple de NativeScript. Usa co
3145
```
3246
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript-vue.org/layouts/absolute_layout_overlap.svg" />
3347

34-
3548
## Propiedades
3649

37-
`AbsoluteLayout` no tiene propiedades.
50+
No tiene propiedades.
3851

39-
## Propiedades de elementos hijos
52+
## Additional children props
4053

41-
Cuando un elemento es hijo directo de `AbsoluteLayout`, las siguientes propiedades pueden ser utilizadas en ese elemento hijo:
54+
Cuando un elemento es hijo directo de AbsoluteLayout, las siguientes propiedades pueden ser utilizadas en ese elemento hijo:
4255

43-
| Nombre | Tipo | Descripción |
56+
| Name | Type | Description |
4457
|------|------|-------------|
45-
| `top` | `Number` | Representa la distancia desde el margen superior del `AbsoluteLayout`
46-
| `left` | `Number` | Representa la distancia desde el margen izquierdo del `AbsoluteLayout`
58+
| `top` | `Number` | Obtiene o establece la distancia (en píxeles) entre el borde superior del elemento hijo y el borde superior del elemento padre.
59+
| `left` | `Number` | Obtiene o establece la distancia (en píxeles) entre el borde izquierdo del elemento hijo y el borde izquierdo del elemento padre.

content/docs/es/elements/layouts/dock-layout.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@ apiRef: https://docs.nativescript.org/api-reference/modules/_ui_layouts_dock_lay
44
contributors: [ianaya89]
55
---
66

7-
El contenedor `DockLayout` provee un mecanismo de acoplamiento para los elementos hijos, basado en los valores `left`, `right`, `top`, `bottom`. Para definir el tipo de acoplamiento de un elemento hijo, se puede utilizar la propiedad `dock`. Para acoplar un elemento hijo en el centro de un `DockLayout`, este deberá ser el último hijo del contenedor `DockLayout` y la propiedad de `stretchLastChild` (de `DockLayout`) deberá tener el valor `true`.
7+
El contenedor `DockLayout` provee un mecanismo de acoplamiento para los elementos hijos que permite ubicalor a los costados o en el centro del contenedor.
88

9-
### Ejemplos
9+
`<DockLayout>` se comporta de la siguiente forma:
1010

11-
#### Acoplar a cada lado sin estirar el último elemento hijo
11+
* Usa la propiedad `dock` para ubicar los elementos con los valores: `left`, `right`, `top`, `bottom`.
12+
* Permite acoplar un elemento hijo en el centro del contenedor. En ese caso, este deberá ser el último hijo del contenedor `<DockLayout>` y la propiedad de `stretchLastChild` (de `<DockLayout>`) deberá tener el valor `true`.
13+
* Fuerza restricciones de posicionamiento sobre los elementos hijos.
14+
* Redimensiona los elementos hijos en tiempo de ejecucion, cuando estos cambian de tamaño.Resizes its children at runtime when its size changes.
15+
16+
## Ejemplos
17+
18+
### Acoplar a cada lado sin estirar el último elemento hijo
1219

1320
```html
1421
<DockLayout stretchLastChild="false" backgroundColor="#3c495e">
@@ -20,7 +27,9 @@ El contenedor `DockLayout` provee un mecanismo de acoplamiento para los elemento
2027
```
2128
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript-vue.org/layouts/dock_layout_no_stretch.svg" />
2229

23-
#### Acoplar a cada lado estirando el último elemento hijo
30+
### Acoplar a cada lado estirando el último elemento hijo
31+
32+
El siguiente ejemplo muestra como la propiedad `stretchLastChild` afecta la posicion de los elementos hijos en un contenedor `<DockLayout>`. El último elemento (con el la propiedad `dock="bottom"`), es estirado para que ocupe el resto del espacio disponible luego del posicionamiento de los primeros tres elementos.
2433

2534
```html
2635
<DockLayout stretchLastChild="true" backgroundColor="#3c495e">
@@ -32,7 +41,25 @@ El contenedor `DockLayout` provee un mecanismo de acoplamiento para los elemento
3241
```
3342
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript-vue.org/layouts/dock_layout_stretch.svg" />
3443

35-
#### Múltiples elementos hijos en el mismo lado
44+
### Acoplar a ambos lados y al centro
45+
46+
El siguiente ejemplo crea un contenedor `<DockLayout>` de cinco elementos. Los primeros cuatro elementos envuelven al elemento del centro en un cuadro.
47+
48+
```html
49+
<DockLayout stretchLastChild="true" backgroundColor="#3c495e">
50+
<Label text="left" dock="left" width="40" backgroundColor="#43b883"/>
51+
<Label text="top" dock="top" height="40" backgroundColor="#289062"/>
52+
<Label text="right" dock="right" width="40" backgroundColor="#43b883"/>
53+
<Label text="bottom" dock="bottom" height="40" backgroundColor="#289062"/>
54+
<Label text="center" backgroundColor="#1c6b48" />
55+
</DockLayout>
56+
```
57+
58+
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript-vue.org/layouts/dock_layout_all_sides_and_stretch.svg" />
59+
60+
### Múltiples elementos hijos en el mismo lado
61+
62+
El siguiente ejemplo crea una sola línea de posicionamiento, con cuatro elementos que se estiran a lo largo y ancho de la pantalla.
3663

3764
```html
3865
<DockLayout stretchLastChild="true" backgroundColor="#3c495e">

0 commit comments

Comments
 (0)