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
58add2e4
Commit
58add2e4
authored
Nov 07, 2016
by
baiyaaaaa
Committed by
cinwell.li
Nov 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct the capitalized
parent
6c8015bd
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
7 deletions
+7
-7
build/bin/new.js
build/bin/new.js
+1
-1
custom-theme.md
custom-theme.md
+1
-1
examples/docs/zh-cn/quickstart.md
examples/docs/zh-cn/quickstart.md
+1
-1
examples/route.config.js
examples/route.config.js
+2
-2
i18n.md
i18n.md
+1
-1
src/locale/index.js
src/locale/index.js
+1
-1
src/locale/lang/zh-CN.js
src/locale/lang/zh-CN.js
+0
-0
No files found.
build/bin/new.js
View file @
58add2e4
...
...
@@ -80,7 +80,7 @@ export default {
</script>`
},
{
filename
:
path
.
join
(
'
../../examples/docs/zh-
cn
'
,
`
${
componentname
}
.md`
),
filename
:
path
.
join
(
'
../../examples/docs/zh-
CN
'
,
`
${
componentname
}
.md`
),
content
:
`##
${
chineseName
}
`
}
];
...
...
custom-theme.md
View file @
58add2e4
...
...
@@ -82,4 +82,4 @@ Vue.use(ElementUI)
}
```
如果不清楚
`babel-plugin-component`
是什么,请阅读
[
快速上手
](
./examples/docs/zh-
cn
/quickstart.md
)
一节。更多
`element-theme`
用法请参考
[
项目仓库
](
https://github.com/ElementUI/element-theme
)
。
如果不清楚
`babel-plugin-component`
是什么,请阅读
[
快速上手
](
./examples/docs/zh-
CN
/quickstart.md
)
一节。更多
`element-theme`
用法请参考
[
项目仓库
](
https://github.com/ElementUI/element-theme
)
。
examples/docs/zh-cn/quickstart.md
View file @
58add2e4
...
...
@@ -238,7 +238,7 @@ webpack.config.js
```
javascript
{
plugins
:
[
new
webpack
.
IgnorePlugin
(
/element-ui
\/
lib
\/
locale
\/
lang
\/
zh-
cn
/
)
new
webpack
.
IgnorePlugin
(
/element-ui
\/
lib
\/
locale
\/
lang
\/
zh-
CN
/
)
]
}
```
...
...
examples/route.config.js
View file @
58add2e4
...
...
@@ -8,7 +8,7 @@ const registerRoute = (config) => {
children
:
[]
}];
function
addRoute
(
page
)
{
const
component
=
page
.
path
===
'
/changelog
'
?
require
(
'
./pages/changelog.vue
'
)
:
require
(
`./docs/zh-
cn
${
page
.
path
}
.md`
);
const
component
=
page
.
path
===
'
/changelog
'
?
require
(
'
./pages/changelog.vue
'
)
:
require
(
`./docs/zh-
CN
${
page
.
path
}
.md`
);
let
child
=
{
path
:
page
.
path
.
slice
(
1
),
meta
:
{
...
...
@@ -74,7 +74,7 @@ route.route = route.route.concat([indexRoute, guideRoute, resourceRoute]);
route
.
route
.
push
({
path
:
'
*
'
,
component
:
require
(
'
./docs/zh-
cn
/home.md
'
)
component
:
require
(
'
./docs/zh-
CN
/home.md
'
)
});
export
const
navs
=
route
.
navs
;
...
...
i18n.md
View file @
58add2e4
...
...
@@ -32,7 +32,7 @@ webpack.config.js
```
javascript
{
plugins
:
[
new
webpack
.
IgnorePlugin
(
/element-ui
\/
lib
\/
locale
\/
lang
\/
zh-
cn
/
)
new
webpack
.
IgnorePlugin
(
/element-ui
\/
lib
\/
locale
\/
lang
\/
zh-
CN
/
)
]
}
```
...
...
src/locale/index.js
View file @
58add2e4
import
defaultLang
from
'
element-ui/src/locale/lang/zh-
cn
'
;
import
defaultLang
from
'
element-ui/src/locale/lang/zh-
CN
'
;
import
Vue
from
'
vue
'
;
import
deepmerge
from
'
deepmerge
'
;
import
Format
from
'
./format
'
;
...
...
src/locale/lang/zh-
cn
.js
→
src/locale/lang/zh-
CN
.js
View file @
58add2e4
File moved
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