mirror of https://github.com/ElemeFE/element
i18n.md spanish version
parent
f264ed1f25
commit
a49e063a81
|
@ -1,6 +1,6 @@
|
|||
## Internationalization
|
||||
## Internacionalización
|
||||
|
||||
The default language of Element is Chinese. If you wish to use another language, you'll need to do some i18n configuration. In your entry file, if you are importing Element entirely:
|
||||
El idioma predeterminado de Element es el chino. Si se desea utilizar otro idioma, será necesario realizar alguna configuración de i18n. En su fichero de entrada, si está importando Element por completo:
|
||||
|
||||
```javascript
|
||||
import Vue from 'vue'
|
||||
|
@ -10,7 +10,7 @@ import locale from 'element-ui/lib/locale/lang/en'
|
|||
Vue.use(ElementUI, { locale })
|
||||
```
|
||||
|
||||
Or if you are importing Element on demand:
|
||||
O si está importando Element a petición:
|
||||
|
||||
```javascript
|
||||
import Vue from 'vue'
|
||||
|
@ -26,7 +26,7 @@ Vue.component(Button.name, Button)
|
|||
Vue.component(Select.name, Select)
|
||||
```
|
||||
|
||||
The Chinese language pack is imported by default, even if you're using another language. But with `NormalModuleReplacementPlugin` provided by webpack you can replace default locale:
|
||||
El paquete de idioma chino se importa por defecto, incluso si se esta usando otro idioma. Pero con `NormalModuleReplacementPlugin` proporcionado por el webpack puede reemplazar la localización predeterminada:
|
||||
|
||||
webpack.config.js
|
||||
```javascript
|
||||
|
@ -37,9 +37,9 @@ webpack.config.js
|
|||
}
|
||||
```
|
||||
|
||||
## Compatible with `vue-i18n@5.x`
|
||||
## Compatible con `vue-i18n@5.x`
|
||||
|
||||
Element is compatible with [vue-i18n@5.x](https://github.com/kazupon/vue-i18n), which makes multilingual switching even easier.
|
||||
Element es compatible con [vue-i18n@5.x](https://github.com/kazupon/vue-i18n), lo que facilita aún más la conmutación multilingüe.
|
||||
|
||||
```javascript
|
||||
import Vue from 'vue'
|
||||
|
@ -56,8 +56,8 @@ Vue.locale('zh-cn', zhLocale)
|
|||
Vue.locale('en', enLocale)
|
||||
```
|
||||
|
||||
## Compatible with other i18n plugins
|
||||
Element may not be compatible with i18n plugins other than vue-i18n, but you can customize how Element processes i18n.
|
||||
## Compatible con otros plugins i18n
|
||||
Es posible que Element no sea compatible con otros plugins i18n que no sean vue-i18n, pero puede personalizar la forma en que Element procesa i18n.
|
||||
|
||||
```javascript
|
||||
import Vue from 'vue'
|
||||
|
@ -72,9 +72,9 @@ Vue.use(Element, {
|
|||
})
|
||||
```
|
||||
|
||||
## Compatible with `vue-i18n@6.x`
|
||||
## Compatible con `vue-i18n@6.x`
|
||||
|
||||
You need to manually handle it for compatibility with `6.x`.
|
||||
Necesita manejarlo manualmente para ser compatible con `6.x`.
|
||||
|
||||
```javascript
|
||||
import Vue from 'vue'
|
||||
|
@ -108,7 +108,7 @@ Vue.use(Element, {
|
|||
new Vue({ i18n }).$mount('#app')
|
||||
```
|
||||
|
||||
## Custom i18n in on-demand components
|
||||
## Personalización de i18n en componentes bajo petición
|
||||
|
||||
```js
|
||||
import Vue from 'vue'
|
||||
|
@ -141,7 +141,7 @@ const i18n = new VueI18n({
|
|||
ElementLocale.i18n((key, value) => i18n.t(key, value))
|
||||
```
|
||||
|
||||
## Import via CDN
|
||||
## Importar via CDN
|
||||
|
||||
```html
|
||||
<script src="//unpkg.com/vue"></script>
|
||||
|
@ -153,7 +153,7 @@ ElementLocale.i18n((key, value) => i18n.t(key, value))
|
|||
</script>
|
||||
```
|
||||
|
||||
Compatible with `vue-i18n`
|
||||
Compatible con `vue-i18n`
|
||||
|
||||
```html
|
||||
<script src="//unpkg.com/vue"></script>
|
||||
|
@ -168,7 +168,7 @@ Compatible with `vue-i18n`
|
|||
</script>
|
||||
```
|
||||
|
||||
Currently Element ships with the following languages:
|
||||
Actualmente Element está disponible en los siguientes idiomas:
|
||||
<ul class="language-list">
|
||||
<li>Simplified Chinese (zh-CN)</li>
|
||||
<li>English (en)</li>
|
||||
|
@ -209,4 +209,4 @@ Currently Element ships with the following languages:
|
|||
<li>Hebrew (he)</li>
|
||||
</ul>
|
||||
|
||||
If your target language is not included, you are more than welcome to contribute: just add another language config [here](https://github.com/ElemeFE/element/tree/master/src/locale/lang) and create a pull request.
|
||||
Si su idioma de destino no está incluido, puede contribuir: simplemente añada [aqui](https://github.com/ElemeFE/element/tree/master/src/locale/lang) otra configuración de idioma y cree un pull request.
|
Loading…
Reference in New Issue