mirror of https://github.com/ElemeFE/element
correct the capitalized
parent
6c8015bd63
commit
58add2e4ab
|
@ -80,7 +80,7 @@ export default {
|
||||||
</script>`
|
</script>`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
filename: path.join('../../examples/docs/zh-cn', `${componentname}.md`),
|
filename: path.join('../../examples/docs/zh-CN', `${componentname}.md`),
|
||||||
content: `## ${chineseName}`
|
content: `## ${chineseName}`
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
@ -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)。
|
||||||
|
|
|
@ -238,7 +238,7 @@ webpack.config.js
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.IgnorePlugin(/element-ui\/lib\/locale\/lang\/zh-cn/)
|
new webpack.IgnorePlugin(/element-ui\/lib\/locale\/lang\/zh-CN/)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -8,7 +8,7 @@ const registerRoute = (config) => {
|
||||||
children: []
|
children: []
|
||||||
}];
|
}];
|
||||||
function addRoute(page) {
|
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 = {
|
let child = {
|
||||||
path: page.path.slice(1),
|
path: page.path.slice(1),
|
||||||
meta: {
|
meta: {
|
||||||
|
@ -74,7 +74,7 @@ route.route = route.route.concat([indexRoute, guideRoute, resourceRoute]);
|
||||||
|
|
||||||
route.route.push({
|
route.route.push({
|
||||||
path: '*',
|
path: '*',
|
||||||
component: require('./docs/zh-cn/home.md')
|
component: require('./docs/zh-CN/home.md')
|
||||||
});
|
});
|
||||||
|
|
||||||
export const navs = route.navs;
|
export const navs = route.navs;
|
||||||
|
|
2
i18n.md
2
i18n.md
|
@ -32,7 +32,7 @@ webpack.config.js
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.IgnorePlugin(/element-ui\/lib\/locale\/lang\/zh-cn/)
|
new webpack.IgnorePlugin(/element-ui\/lib\/locale\/lang\/zh-CN/)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
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 Vue from 'vue';
|
||||||
import deepmerge from 'deepmerge';
|
import deepmerge from 'deepmerge';
|
||||||
import Format from './format';
|
import Format from './format';
|
||||||
|
|
Loading…
Reference in New Issue