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
73788560
Commit
73788560
authored
Jul 11, 2017
by
mario_ma
Committed by
杨奕
Jul 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update element use vue-i18n@6.x and other i18n docs
parent
986c4a21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
examples/docs/en-US/i18n.md
examples/docs/en-US/i18n.md
+2
-2
examples/docs/zh-CN/i18n.md
examples/docs/zh-CN/i18n.md
+2
-2
No files found.
examples/docs/en-US/i18n.md
View file @
73788560
...
...
@@ -102,7 +102,7 @@ const i18n = new VueI18n({
})
Vue
.
use
(
Element
,
{
i18n
:
key
=>
i18n
.
t
(
key
)
i18n
:
(
key
,
value
)
=>
i18n
.
t
(
key
.
value
)
})
new
Vue
({
i18n
}).
$mount
(
'
#app
'
)
...
...
@@ -138,7 +138,7 @@ const i18n = new VueI18n({
messages
,
// set locale messages
})
ElementLocale
.
i18n
(
key
=>
i18n
.
t
(
key
))
ElementLocale
.
i18n
(
(
key
,
value
)
=>
i18n
.
t
(
key
,
value
))
```
## Import via CDN
...
...
examples/docs/zh-CN/i18n.md
View file @
73788560
...
...
@@ -114,7 +114,7 @@ const i18n = new VueI18n({
})
Vue
.
use
(
Element
,
{
i18n
:
key
=>
i18n
.
vm
.
_t
(
key
)
i18n
:
(
key
,
value
)
=>
i18n
.
vm
.
_t
(
key
,
value
)
})
new
Vue
({
i18n
}).
$mount
(
'
#app
'
)
...
...
@@ -150,7 +150,7 @@ const i18n = new VueI18n({
messages
,
// set locale messages
})
ElementLocale
.
i18n
(
key
=>
i18n
.
t
(
key
))
ElementLocale
.
i18n
(
(
key
,
value
)
=>
i18n
.
t
(
key
,
value
))
```
## 通过 CDN 的方式加载语言文件
...
...
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