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

Complete spanish translation #623

Closed
wants to merge 1 commit into from

Conversation

zeratulmdq
Copy link

@zeratulmdq zeratulmdq commented Feb 10, 2017

@posva cuando tengas un rato libre revisa esta traducción. La de vue-router la empiezo a modificar mañana y te aviso cuando este terminado.

EDIT: no dije nada, ya termine lo de vue-router también

- [Acciones](actions.md)
- [Módulos](modules.md)
- [Estructura de la aplicación](structure.md)
- [Complementos](plugins.md)
Copy link
Member

Choose a reason for hiding this comment

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

no es mejor guardar el término plugins?

- [Modo estricto](strict.md)
- [Manejo de formularios](forms.md)
- [Testeo](testing.md)
- [Recarga en caliente](hot-reload.md)
Copy link
Member

Choose a reason for hiding this comment

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

Creo que deberiamos guardar hot reload tambien. Si busco recarga en caliente en Google no encuentro nada

[https://unpkg.com/vuex](https://unpkg.com/vuex)

<!--email_off-->
[Unpkg.com](https://unpkg.com) provides NPM-based CDN links. The above link will always point to the latest release on NPM. You can also use a specific version/tag via URLs like `https://unpkg.com/[email protected]`.
Copy link
Member

Choose a reason for hiding this comment

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

este no esta traducido 😆

@@ -0,0 +1,63 @@
# What is Vuex?

Vuex is a **state management pattern + library** for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion. It also integrates with Vue's official [devtools extension](https://github.com/vuejs/vue-devtools) to provide advanced features such as zero-config time-travel debugging and state snapshot export / import.
Copy link
Member

Choose a reason for hiding this comment

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

este tampoco


### Árbol único de estado

Vuex usa un **árbol único de estado** - esto es, un solo objeto que contiene el estado de tu aplicación y sirve como "única fuente de verdad". Esto también significa que tendrás solo un _store_ por cada aplicación. Un árbol único de estado hace trivial encontrar una porción específica del estado, y nos permite fácilmente tomar instantáneas de estado actual de la aplicación para depuración.
Copy link
Member

Choose a reason for hiding this comment

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

store por cada aplicación

Un árbol único de estado hace De este modo resulta trivial encontrar una..., del estado actual...


Vuex usa un **árbol único de estado** - esto es, un solo objeto que contiene el estado de tu aplicación y sirve como "única fuente de verdad". Esto también significa que tendrás solo un _store_ por cada aplicación. Un árbol único de estado hace trivial encontrar una porción específica del estado, y nos permite fácilmente tomar instantáneas de estado actual de la aplicación para depuración.

El árbol único de estado no genera conflictos con la modularidad - en los próximos capítulos discutiremos como dividir tu estado y mutaciones en sub-módulos.
Copy link
Member

Choose a reason for hiding this comment

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

no supone un freno a la modularidad

discutiremos veremos?

Cuando un componente necesita usar múltiples _getters_ o propiedades del estado del store, declarar cada una de ellas como propiedades computadas puede tornarse repetitivo. Para lidiar con esto, podemos usar la función auxiliar `mapState`, la cual genera funciones _getters_ computadas por nosotros y nos ayuda a reducir código:

``` js
// en la versión independiente, las funciones auxiliares son expuestas como Vuex.mapState
Copy link
Member

Choose a reason for hiding this comment

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

se dice version independiente?

export default {
// ...
computed: mapState({
// ¡las funciones flecha pueden hacer que el código sea muy breve!
Copy link
Member

Choose a reason for hiding this comment

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

pueden ... abrevian considerablement el codigo

}
```

También podemos pasar un arreglo de cadenas de texto a `mapState` cuando el nombre de la propiedad computada mapeada es el mismo que el nombre en el árbol de estado.
Copy link
Member

Choose a reason for hiding this comment

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

arreglo? No es mejor lista?


### Operador de propagación de objetos

Nota que `mapState` devuelve un objeto. ¿Cómo lo utilizamos en combinación con otras propiedades computadas locales? Normalmente, tendríamos que utilizar alguna utilidad para combinar múltiples objetos en uno solo para que podamos pasar el objeto resultante a `computed`. Sin embargo, con el [operador de propagación de objetos](https://github.com/sebmarkbage/ecmascript-rest-spread) (el cual es una propuesta de nivel 3 de ECMAScript), podemos simplificar la sintaxis:
Copy link
Member

Choose a reason for hiding this comment

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

No creo que el Nota que sea necesario, no?

como utilizarlo ...
para poder pasar...


### Los componentes todavía puede tener estado local

Usar Vuex no significa que debes poner **todo** tu estado en él. Aunque agregar más estado dentro de Vuex hace que las mutaciones sean más explícitas y depurables, en ocasiones puede hacer que el código sea más indirecto y complejo. Si una porción de estado pertenece solo a un componente, podría ser mejor dejarlo dentro de su estado local. Debes analizar pros y contras y tomar decisiones que se ajusten a las necesidades de desarrollo de tu aplicación.
Copy link
Member

Choose a reason for hiding this comment

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

que debes poner ....
solo a un componente, tal vez sea mejor dejarlo...

@posva
Copy link
Member

posva commented Mar 17, 2017

A ver si me pongo a mirar aunque sea 20m por dia para terminarlo. Esta traduccion estaba terminada, o estais mas liados con la de Vue?

@zeratulmdq
Copy link
Author

@posva estabamos terminando la de Vue. Tuve una operación hace un mes mas o menos y estuve fuera de todo. Recién ahora vuelvo a trabajar, pero habíamos quedado con @PierBover que terminabamos la de Vue y después seguíamos por acá.

@posva
Copy link
Member

posva commented Mar 19, 2017

@zeratulmdq Ok, espero que fuese bien y que ahora estes perfecto 👌
En ese caso, pienso que es mejor mirar la otra traducción y así repartir un poco más el trabajo

@ktsn ktsn added the documentation Improvements or additions to documentation label Apr 18, 2017
@kiaking
Copy link
Member

kiaking commented Jan 27, 2020

@posva @zeratulmdq This is quite old issue, though do we have any updates on this? It would be nice to have Spanish translation though I think there's many update since this PR so we might have to restart it. Also, there's another PR for Spanish translation #689 and not sure what the difference is.

Should we close this one and the #698? Perhaps wait for another author to jump in with the new PR.

@posva
Copy link
Member

posva commented Jan 27, 2020

I'm not sure where are things being discussed. I know there is https://github.com/vuejs-es/vuejs.org and people talked about translation on the vuejs forum

Unfortunately I don't have the bandwidth to take care of the translations, I think #689 was more up to date but there is too many review comments that need to be addressed.

Giving the state of Vuex, I don't think this is a priority right now, so pinging the people on the PR is enough. Having the PR open is okay, there is no rush to close it and having it open could maybe make it visible to some Spanish speakers willing to take on the review. We could also add a label and pin it maybe?

@kiaking
Copy link
Member

kiaking commented Jan 27, 2020

@posva Thank you for the check!

We could also add a label and pin it maybe?

Nice idea! Let's close at least one of the issues. Since it seems like #689 is more up to date, I'll keep that one open & pined, and close this one (#689 has a nice flag too 😃).

@kiaking kiaking closed this Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants