Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
119a35b5
Commit
119a35b5
authored
Jan 05, 2017
by
qingwei.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i18n: add english doc
parent
171b7fd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
examples/docs/en-US/i18n.md
examples/docs/en-US/i18n.md
+15
-0
No files found.
examples/docs/en-US/i18n.md
View file @
119a35b5
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment