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
importVuefrom'vue'
...
...
@@ -10,7 +10,7 @@ import locale from 'element-ui/lib/locale/lang/en'
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
importVuefrom'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
importVuefrom'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
importVuefrom'vue'
...
...
@@ -108,7 +108,7 @@ Vue.use(Element, {
newVue({i18n}).$mount('#app')
```
## Custom i18n in on-demand components
## Personalización de i18n en componentes bajo petición
Currently Element ships with the following languages:
Actualmente Element está disponible en los siguientes idiomas:
<ulclass="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.