From 58add2e4abd51f9687be23ee5a1004080f91dee3 Mon Sep 17 00:00:00 2001 From: baiyaaaaa Date: Mon, 7 Nov 2016 16:54:20 +0800 Subject: [PATCH] correct the capitalized --- build/bin/new.js | 2 +- custom-theme.md | 2 +- examples/docs/zh-cn/quickstart.md | 2 +- examples/route.config.js | 4 ++-- i18n.md | 2 +- src/locale/index.js | 2 +- src/locale/lang/{zh-cn.js => zh-CN.js} | 0 7 files changed, 7 insertions(+), 7 deletions(-) rename src/locale/lang/{zh-cn.js => zh-CN.js} (100%) diff --git a/build/bin/new.js b/build/bin/new.js index 2394ddfa9..b643fcc62 100644 --- a/build/bin/new.js +++ b/build/bin/new.js @@ -80,7 +80,7 @@ export default { ` }, { - filename: path.join('../../examples/docs/zh-cn', `${componentname}.md`), + filename: path.join('../../examples/docs/zh-CN', `${componentname}.md`), content: `## ${chineseName}` } ]; diff --git a/custom-theme.md b/custom-theme.md index f930c897c..ad732933a 100644 --- a/custom-theme.md +++ b/custom-theme.md @@ -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)。 diff --git a/examples/docs/zh-cn/quickstart.md b/examples/docs/zh-cn/quickstart.md index 36d7bda94..e88cbaabc 100644 --- a/examples/docs/zh-cn/quickstart.md +++ b/examples/docs/zh-cn/quickstart.md @@ -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/) ] } ``` diff --git a/examples/route.config.js b/examples/route.config.js index 9cbb17f79..3fc34717a 100644 --- a/examples/route.config.js +++ b/examples/route.config.js @@ -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; diff --git a/i18n.md b/i18n.md index 2a2f6e992..0245bad13 100644 --- a/i18n.md +++ b/i18n.md @@ -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/) ] } ``` diff --git a/src/locale/index.js b/src/locale/index.js index 3cd640e5b..eebb19ec1 100644 --- a/src/locale/index.js +++ b/src/locale/index.js @@ -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 deepmerge from 'deepmerge'; import Format from './format'; diff --git a/src/locale/lang/zh-cn.js b/src/locale/lang/zh-CN.js similarity index 100% rename from src/locale/lang/zh-cn.js rename to src/locale/lang/zh-CN.js