i18n: add english doc

pull/2191/head
qingwei.li 2017-01-05 10:13:24 +08:00
parent 171b7fd0f1
commit 119a35b598
1 changed files with 15 additions and 0 deletions

View File

@ -56,6 +56,21 @@ Vue.locale('zh-cn', zhLocale)
Vue.locale('en', enLocale)
```
## Compatibility with other i18n plugins
Element may not be compatible with i18n plugins other than vue-i18n, but you can customize how Element processes i18n.
```javascript
import Vue from 'vue'
import Element from 'element-ui'
import enLocale from 'element-ui/lib/locale/lang/en'
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
Vue.use(Element, {
i18n: function (path, options) {
// ...
}
})
```
Currently Element ships with the following languages:
<ul class="language-list">