Przeglądaj źródła

correct the capitalized

baiyaaaaa 8 lat temu
rodzic
commit
58add2e4ab

+ 1 - 1
build/bin/new.js

@@ -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}`
   }
 ];

+ 1 - 1
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)。

+ 1 - 1
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/)
   ]
 }
 ```

+ 2 - 2
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;

+ 1 - 1
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/)
   ]
 }
 ```

+ 1 - 1
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';

+ 0 - 0
src/locale/lang/zh-cn.js → src/locale/lang/zh-CN.js