Skip to content

Update ES version of layouts, fix typos and improve grammar. #174

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

Merged
merged 60 commits into from
Aug 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
99b66df
Translate introduction
ianaya89 Jul 22, 2018
558b5a1
Add es index ejs
ianaya89 Jul 22, 2018
682943d
Translate quick start
ianaya89 Jul 22, 2018
df69025
Translate installation
ianaya89 Jul 22, 2018
6ea0080
Translate template
ianaya89 Jul 22, 2018
b5d3ce3
Translate ns plugin
ianaya89 Jul 22, 2018
a6ad9cc
Translate vue plugins
ianaya89 Jul 22, 2018
81d680b
Translate manual routing
ianaya89 Jul 23, 2018
c461b06
Translate v-view
ianaya89 Jul 23, 2018
6a4f236
Translate dialog
ianaya89 Jul 23, 2018
a0c49b4
Translate confirm
ianaya89 Jul 23, 2018
ea9a167
Translate alert
ianaya89 Jul 23, 2018
1b1f7ae
Translate activity indicator
ianaya89 Jul 23, 2018
f00b458
Translate html view
ianaya89 Jul 23, 2018
f8959cc
Translate progress
ianaya89 Jul 23, 2018
b8a21ed
Translate label
ianaya89 Jul 23, 2018
d634aa5
Fix components directory and translate switch
ianaya89 Jul 23, 2018
9f33411
Translate web view
ianaya89 Jul 23, 2018
9266cca
Translate button
ianaya89 Jul 23, 2018
6d2e8ec
Translate image
ianaya89 Jul 23, 2018
348ee7f
Translate date picker
ianaya89 Jul 23, 2018
bd59214
Translage list picker
ianaya89 Jul 23, 2018
868bf17
Translage list picker and time picker
ianaya89 Jul 23, 2018
9958ddd
Translate list view
ianaya89 Jul 23, 2018
b11a146
Translate scroll view
ianaya89 Jul 24, 2018
3e66b11
Translate search bar
ianaya89 Jul 24, 2018
d4385b1
Translate confirm
ianaya89 Jul 24, 2018
b341aeb
Translate prompt
ianaya89 Jul 24, 2018
5b24b3d
Add es to build process
ianaya89 Jul 24, 2018
f883ec2
Translate action bar
ianaya89 Jul 24, 2018
b48f5ee
Translate action item
ianaya89 Jul 24, 2018
153d7e0
Transalate nav button
ianaya89 Jul 24, 2018
57e1294
Translate slider
ianaya89 Jul 24, 2018
69f2b82
Translate tab view
ianaya89 Jul 24, 2018
634b482
Translate text field
ianaya89 Jul 24, 2018
75f98ad
Translate segmented bar
ianaya89 Jul 24, 2018
8ede2b1
Translate text view
ianaya89 Jul 24, 2018
c17a353
Translate absolute layout
ianaya89 Jul 24, 2018
b1250db
Translate stack layout
ianaya89 Jul 24, 2018
8e09ec9
Translate wrap layout
ianaya89 Jul 25, 2018
b8262ff
Translate dock layout
ianaya89 Jul 25, 2018
2374b00
Translate flexbox layout
ianaya89 Jul 25, 2018
dfd1406
Translate grid layout
ianaya89 Jul 25, 2018
0a434cd
Translate v-template
ianaya89 Jul 26, 2018
2a0cf2b
Translate vue router
ianaya89 Jul 26, 2018
8e07399
Translate playground tutorial
ianaya89 Jul 26, 2018
c791279
Fix typos and improve grammar
ianaya89 Jul 31, 2018
2ed8cc2
Rename index._es.ejs to index_es.ejs
rigor789 Aug 1, 2018
cd547f4
update sponsors list
rigor789 Aug 1, 2018
3302279
Merge remote-tracking branch 'upstream/master'
ianaya89 Aug 1, 2018
4c8bdda
Update es version of absolute layout
ianaya89 Aug 1, 2018
5750eaf
Fix es typos and improve grammar
ianaya89 Aug 1, 2018
6af7d6b
Update es version of dock layout
ianaya89 Aug 1, 2018
dc46af8
Update es version of flex layout
ianaya89 Aug 1, 2018
62da07c
Make en flex layout more consistent
ianaya89 Aug 1, 2018
d51c8bc
Update es version of grid layout
ianaya89 Aug 1, 2018
1b01b0b
Update es version of stack layout
ianaya89 Aug 1, 2018
4d744bf
Update es version of wrap layout
ianaya89 Aug 1, 2018
b7a9882
Make en stack & wrap layouts more consistent
ianaya89 Aug 1, 2018
a6f285f
Merge remote-tracking branch 'upstream/master'
ianaya89 Aug 1, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions content/docs/en/elements/layouts/flexbox-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ contributors: [rigor789, ikoevska]

`<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.

### Examples
## Examples

#### Default flex layout
### Default flex layout

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

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

#### Column flex layout
### Column flex layout

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

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

#### Row flex layout with items aligned to `flex-start`
### Row flex layout with items aligned to `flex-start`

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

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

#### Row flex layout with custom order
### Row flex layout with custom order

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

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

#### Row flex layout with wrapping
### Row flex layout with wrapping

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.

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

#### Column flex layout with reverse order and items with a different `alignSelf`
### Column flex layout with reverse order and items with a different `alignSelf`

The following example shows how to use:

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

| Name | Type | Description |
|------|------|-------------|
`order` | `Number` | Sets the order in which child element appear in relation to one another.
`order` | `Number` | Sets the order in which child element appear in relation to one another.
`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.
`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`.
`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`.
`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`.
`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`.
10 changes: 5 additions & 5 deletions content/docs/en/elements/layouts/stack-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ contributors: [rigor789, ikoevska]

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

### Samples
## Examples

#### Default stacking
### Default stacking

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.

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

#### Horizontal stacking
### Horizontal stacking

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.

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

#### Stack layout with horizontally aligned children
### Stack layout with horizontally aligned children

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

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

#### Horizontal stack layout with vertically aligned children
### Horizontal stack layout with vertically aligned children

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

Expand Down
6 changes: 3 additions & 3 deletions content/docs/en/elements/layouts/wrap-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ contributors: [rigor789, ikoevska]

`<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.

### Samples
### Examples

#### Default wrap layout
### Default wrap layout

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.

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

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

#### Vertical wrap layout
### Vertical wrap layout

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.

Expand Down
2 changes: 1 addition & 1 deletion content/docs/es/elements/components/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ contributors: [ianaya89]

| Android | iOS |
|---------|-----|
| [`android.widget.ImageView`](https://developer.android.com/reference/android/widget/ImageView.html) | [`UIImageView`](https://developer.apple.com/documentation/uikit/uiimageview)
| [`android.widget.ImageView`](https://developer.android.com/reference/android/widget/ImageView.html) | [`UIImageView`](https://developer.apple.com/documentation/uikit/uiimageview)
2 changes: 1 addition & 1 deletion content/docs/es/elements/components/list-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ contributors: [ianaya89]

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.

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

```html
<ListView for="item in listOfItems" @itemTap="onItemTap">
Expand Down
2 changes: 1 addition & 1 deletion content/docs/es/elements/components/text-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiRef: https://docs.nativescript.org/api-reference/classes/_ui_text_view_.textv
contributors: [ianaya89]
---

`<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.
`<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.

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.

Expand Down
35 changes: 24 additions & 11 deletions content/docs/es/elements/layouts/absolute-layout.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
---
title: AbsoluteLayout
apiRef: https://docs.nativescript.org/api-reference/modules/_ui_layouts_absolute_layout_
docRef: https://docs.nativescript.org/ui/layouts/layout-containers#absolutelayout
contributors: [ianaya89]
---

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.

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.
`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).

### Ejemplos
El contenedor `<AbsoluteLayout>` es el *layout* más simple de NativeScript

`<AbsoluteLayout>` se comporta de la siguiente forma:

* Usa un par de coordinadas absolutas izquierda/derecha para posicioanr los elementos hijos.
* **No** fuerza ningún tipo de restricción de posicionamiento sobre los elementos hijos.
* **No** redimensiona los elementos hijos en tiempo de ejecución, cuando estos cambien de tamaño.

## Ejemplos

#### Diseño de tipo grilla
### Diseño de tipo grilla

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).

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

#### Superponiendo elementos
### Superponiendo elementos

El siguiente ejemplo crea un grupo de elementos que se superponen entre ellos.

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


## Propiedades

`AbsoluteLayout` no tiene propiedades.
No tiene propiedades.

## Propiedades de elementos hijos
## Additional children props

Cuando un elemento es hijo directo de `AbsoluteLayout`, las siguientes propiedades pueden ser utilizadas en ese elemento hijo:
Cuando un elemento es hijo directo de AbsoluteLayout, las siguientes propiedades pueden ser utilizadas en ese elemento hijo:

| Nombre | Tipo | Descripción |
| Name | Type | Description |
|------|------|-------------|
| `top` | `Number` | Representa la distancia desde el margen superior del `AbsoluteLayout`
| `left` | `Number` | Representa la distancia desde el margen izquierdo del `AbsoluteLayout`
| `top` | `Number` | Obtiene o establece la distancia (en píxeles) entre el borde superior del elemento hijo y el borde superior del elemento padre.
| `left` | `Number` | Obtiene o establece la distancia (en píxeles) entre el borde izquierdo del elemento hijo y el borde izquierdo del elemento padre.
37 changes: 32 additions & 5 deletions content/docs/es/elements/layouts/dock-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ apiRef: https://docs.nativescript.org/api-reference/modules/_ui_layouts_dock_lay
contributors: [ianaya89]
---

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`.
El contenedor `DockLayout` provee un mecanismo de acoplamiento para los elementos hijos que permite ubicalor a los costados o en el centro del contenedor.

### Ejemplos
`<DockLayout>` se comporta de la siguiente forma:

#### Acoplar a cada lado sin estirar el último elemento hijo
* Usa la propiedad `dock` para ubicar los elementos con los valores: `left`, `right`, `top`, `bottom`.
* 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`.
* Fuerza restricciones de posicionamiento sobre los elementos hijos.
* Redimensiona los elementos hijos en tiempo de ejecucion, cuando estos cambian de tamaño.Resizes its children at runtime when its size changes.

## Ejemplos

### Acoplar a cada lado sin estirar el último elemento hijo

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

#### Acoplar a cada lado estirando el último elemento hijo
### Acoplar a cada lado estirando el último elemento hijo

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.

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

#### Múltiples elementos hijos en el mismo lado
### Acoplar a ambos lados y al centro

El siguiente ejemplo crea un contenedor `<DockLayout>` de cinco elementos. Los primeros cuatro elementos envuelven al elemento del centro en un cuadro.

```html
<DockLayout stretchLastChild="true" backgroundColor="#3c495e">
<Label text="left" dock="left" width="40" backgroundColor="#43b883"/>
<Label text="top" dock="top" height="40" backgroundColor="#289062"/>
<Label text="right" dock="right" width="40" backgroundColor="#43b883"/>
<Label text="bottom" dock="bottom" height="40" backgroundColor="#289062"/>
<Label text="center" backgroundColor="#1c6b48" />
</DockLayout>
```

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

### Múltiples elementos hijos en el mismo lado

El siguiente ejemplo crea una sola línea de posicionamiento, con cuatro elementos que se estiran a lo largo y ancho de la pantalla.

```html
<DockLayout stretchLastChild="true" backgroundColor="#3c495e">
Expand Down
Loading