Skip to content

Commit 6736cbf

Browse files
authored
feat(locale): support color and date for zh_CN (#2223)
1 parent bbda1d7 commit 6736cbf

File tree

6 files changed

+93
-0
lines changed

6 files changed

+93
-0
lines changed

src/locales/zh_CN/color/human.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
export default [
2+
'红色',
3+
'绿色',
4+
'蓝色',
5+
'黄色',
6+
'紫色',
7+
'薄荷绿色',
8+
'蓝绿色',
9+
'白色',
10+
'黑色',
11+
'橙色',
12+
'粉红色',
13+
'灰色',
14+
'红褐色',
15+
'蓝紫色',
16+
'青绿色',
17+
'棕褐色',
18+
'天蓝色',
19+
'浅橙色',
20+
'紫红色',
21+
'淡紫色',
22+
'淡褐色',
23+
'青柠色',
24+
'乳白色',
25+
'靛蓝色',
26+
'金色',
27+
'银色',
28+
];

src/locales/zh_CN/color/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* This file is automatically generated.
3+
* Run 'pnpm run generate:locales' to update.
4+
*/
5+
import type { ColorDefinition } from '../../..';
6+
import human from './human';
7+
8+
const color: ColorDefinition = {
9+
human,
10+
};
11+
12+
export default color;

src/locales/zh_CN/date/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* This file is automatically generated.
3+
* Run 'pnpm run generate:locales' to update.
4+
*/
5+
import type { DateDefinition } from '../../..';
6+
import month from './month';
7+
import weekday from './weekday';
8+
9+
const date: DateDefinition = {
10+
month,
11+
weekday,
12+
};
13+
14+
export default date;

src/locales/zh_CN/date/month.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
export default {
2+
wide: [
3+
'1月',
4+
'2月',
5+
'3月',
6+
'4月',
7+
'5月',
8+
'6月',
9+
'7月',
10+
'8月',
11+
'9月',
12+
'10月',
13+
'11月',
14+
'12月',
15+
],
16+
17+
abbr: [
18+
'1月',
19+
'2月',
20+
'3月',
21+
'4月',
22+
'5月',
23+
'6月',
24+
'7月',
25+
'8月',
26+
'9月',
27+
'10月',
28+
'11月',
29+
'12月',
30+
],
31+
};

src/locales/zh_CN/date/weekday.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default {
2+
wide: ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
3+
abbr: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
4+
};

src/locales/zh_CN/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@
33
* Run 'pnpm run generate:locales' to update.
44
*/
55
import type { LocaleDefinition } from '../..';
6+
import color from './color';
67
import company from './company';
8+
import date from './date';
79
import internet from './internet';
810
import location from './location';
911
import metadata from './metadata';
1012
import person from './person';
1113
import phone_number from './phone_number';
1214

1315
const zh_CN: LocaleDefinition = {
16+
color,
1417
company,
18+
date,
1519
internet,
1620
location,
1721
metadata,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy