Commit 119a35b5 authored by qingwei.li's avatar qingwei.li

i18n: add english doc

parent 171b7fd0
...@@ -56,6 +56,21 @@ Vue.locale('zh-cn', zhLocale) ...@@ -56,6 +56,21 @@ Vue.locale('zh-cn', zhLocale)
Vue.locale('en', enLocale) 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: Currently Element ships with the following languages:
<ul class="language-list"> <ul class="language-list">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment