Skip to content

Commit 662ac5e

Browse files
committed
chore: rename zh-Hant to zh-CN
1 parent a94d4c0 commit 662ac5e

338 files changed

Lines changed: 642 additions & 644 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<p align="center">DevUI components based on React</p>
44

5-
English | [简体中文](README.zh-Hant.md)
5+
English | [简体中文](README.zh-CN.md)
66

77
In development.
88

File renamed without changes.

packages/site/executors/build-base/build-base.impl.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ interface ComponentMeta {
3838
}
3939

4040
interface DemoMeta {
41-
title: { 'en-US': string; 'zh-Hant': string };
41+
title: { 'en-US': string; 'zh-CN': string };
4242
__content: string;
4343
}
4444

45-
const LANGS = ['en-US', 'zh-Hant'] as const;
45+
const LANGS = ['en-US', 'zh-CN'] as const;
4646

4747
class GenerateSite {
4848
private hashList = new Map<string, string>();
@@ -58,7 +58,7 @@ class GenerateSite {
5858
};
5959
};
6060
};
61-
'zh-Hant': {
61+
'zh-CN': {
6262
translation: {
6363
menu: {
6464
'components-group': { [index: string]: string };
@@ -67,7 +67,7 @@ class GenerateSite {
6767
};
6868
};
6969
};
70-
private menuGroups!: { 'en-US': string; 'zh-Hant': string }[];
70+
private menuGroups!: { 'en-US': string; 'zh-CN': string }[];
7171
private routesTmp!: string;
7272
private componentRouteTmp!: string;
7373
private mdRouteTmp!: string;
@@ -127,7 +127,7 @@ class GenerateSite {
127127
this.outputFile(path.join(outDir, `${fileName}.tsx`), outTSX);
128128

129129
const demo = new Map<
130-
'en-US' | 'zh-Hant',
130+
'en-US' | 'zh-CN',
131131
{
132132
id?: string;
133133
name?: string;
@@ -139,7 +139,7 @@ class GenerateSite {
139139
}
140140
>([
141141
['en-US', {}],
142-
['zh-Hant', {}],
142+
['zh-CN', {}],
143143
]);
144144
Array.from(demo.keys()).forEach((lang, index, langs) => {
145145
const obj = demo.get(lang)!;
@@ -167,18 +167,18 @@ class GenerateSite {
167167

168168
generateComponentRoute(file: { name: string; path: string; data: string[] }) {
169169
const enMeta = loadFront(readFileSync(path.join(file.path, 'README.md'))) as ComponentMeta;
170-
const zhMeta = loadFront(readFileSync(path.join(file.path, 'README.zh-Hant.md'))) as ComponentMeta;
170+
const zhMeta = loadFront(readFileSync(path.join(file.path, 'README.zh-CN.md'))) as ComponentMeta;
171171
const meta = {
172172
aria: enMeta.aria ?? '',
173173
compose: enMeta.compose ?? '',
174174
'virtual-scroll': enMeta['virtual-scroll'] ?? '',
175175
title: {
176176
'en-US': enMeta.title,
177-
'zh-Hant': zhMeta.title,
177+
'zh-CN': zhMeta.title,
178178
},
179179
__content: {
180180
'en-US': enMeta.__content,
181-
'zh-Hant': zhMeta.__content,
181+
'zh-CN': zhMeta.__content,
182182
},
183183
};
184184

@@ -483,7 +483,7 @@ export default async function* siteBuildExecutor(options: SiteBuildExecutorOptio
483483
};
484484
if (!fileWatcher.hasWatcher(path.join(componentPath, 'README.md'))) {
485485
fileWatcher.addWatcher(path.join(componentPath, 'README.md'), task);
486-
fileWatcher.addWatcher(path.join(componentPath, 'README.zh-Hant.md'), task);
486+
fileWatcher.addWatcher(path.join(componentPath, 'README.zh-CN.md'), task);
487487
fileWatcher.addWatcher(path.join(componentPath, 'demos'), task);
488488
}
489489
}
@@ -508,7 +508,7 @@ export default async function* siteBuildExecutor(options: SiteBuildExecutorOptio
508508
};
509509
if (!fileWatcher.hasWatcher(filePath)) {
510510
fileWatcher.addWatcher(path.join(mdPath, routeName + '.md'), task);
511-
fileWatcher.addWatcher(path.join(mdPath, routeName + '.zh-Hant.md'), task);
511+
fileWatcher.addWatcher(path.join(mdPath, routeName + '.zh-CN.md'), task);
512512
}
513513
}
514514
}

packages/site/executors/build-base/files/ComponentRoute.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ __import__
99
export default function __Route__() {
1010
const props = {
1111
'en-US': __en-US__,
12-
'zh-Hant': __zh-Hant__,
12+
'zh-CN': __zh-CN__,
1313
};
1414

1515
return <AppComponentRoute {...props} />;

packages/site/executors/build-base/files/MdRoute.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { useEffect } from 'react';
66
export default function __Route__() {
77
const props = {
88
'en-US': { html: [__en-US__] },
9-
'zh-Hant': { html: [__zh-Hant__] },
9+
'zh-CN': { html: [__zh-CN__] },
1010
};
1111

1212
return <AppMdRoute {...props} />;
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[
2-
{ "en-US": "General", "zh-Hant": "通用" },
3-
{ "en-US": "Layout", "zh-Hant": "布局" },
4-
{ "en-US": "Navigation", "zh-Hant": "导航" },
5-
{ "en-US": "Data Display", "zh-Hant": "数据展示" },
6-
{ "en-US": "Data Entry", "zh-Hant": "数据录入" },
7-
{ "en-US": "Feedback", "zh-Hant": "反馈" },
8-
{ "en-US": "Other", "zh-Hant": "其它" }
2+
{ "en-US": "General", "zh-CN": "通用" },
3+
{ "en-US": "Layout", "zh-CN": "布局" },
4+
{ "en-US": "Navigation", "zh-CN": "导航" },
5+
{ "en-US": "Data Display", "zh-CN": "数据展示" },
6+
{ "en-US": "Data Entry", "zh-CN": "数据录入" },
7+
{ "en-US": "Feedback", "zh-CN": "反馈" },
8+
{ "en-US": "Other", "zh-CN": "其它" }
99
]

packages/site/executors/build-base/files/resources.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}
3838
}
3939
},
40-
"zh-Hant": {
40+
"zh-CN": {
4141
"translation": {
4242
"Docs": "文档",
4343
"Components": "组件",

packages/site/src/app/components/route/component/ComponentRoute.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { AppRoute } from './Route';
99

1010
export interface AppComponentRouteProps {
1111
'en-US': AppRouteProps;
12-
'zh-Hant': AppRouteProps;
12+
'zh-CN': AppRouteProps;
1313
}
1414

1515
export function AppComponentRoute(props: AppComponentRouteProps): JSX.Element | null {

packages/site/src/app/components/route/md/MdRoute.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { AppRoute } from './Route';
77

88
export interface AppMdRouteProps {
99
'en-US': AppRouteProps;
10-
'zh-Hant': AppRouteProps;
10+
'zh-CN': AppRouteProps;
1111
}
1212

1313
export function AppMdRoute(props: AppMdRouteProps): JSX.Element | null {

packages/site/src/app/routes/components/interface/Interface.zh-Hant.md renamed to packages/site/src/app/routes/components/interface/Interface.zh-CN.md

File renamed without changes.

0 commit comments

Comments
 (0)