aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYunHan <[email protected]>2023-06-25 15:50:13 +0800
committerGitHub <[email protected]>2023-06-25 09:50:13 +0200
commit6736cbf9aeeb02a3eb080f0f85c37f141f6924fd (patch)
treeee33b82b2adff14fe66fd14781ced762d9d97097 /src
parentbbda1d7e2ce0b0bd33a3cc78458a73cd79e3eca0 (diff)
downloadfaker-6736cbf9aeeb02a3eb080f0f85c37f141f6924fd.tar.xz
faker-6736cbf9aeeb02a3eb080f0f85c37f141f6924fd.zip
feat(locale): support color and date for zh_CN (#2223)
Diffstat (limited to 'src')
-rw-r--r--src/locales/zh_CN/color/human.ts28
-rw-r--r--src/locales/zh_CN/color/index.ts12
-rw-r--r--src/locales/zh_CN/date/index.ts14
-rw-r--r--src/locales/zh_CN/date/month.ts31
-rw-r--r--src/locales/zh_CN/date/weekday.ts4
-rw-r--r--src/locales/zh_CN/index.ts4
6 files changed, 93 insertions, 0 deletions
diff --git a/src/locales/zh_CN/color/human.ts b/src/locales/zh_CN/color/human.ts
new file mode 100644
index 00000000..c092b58a
--- /dev/null
+++ b/src/locales/zh_CN/color/human.ts
@@ -0,0 +1,28 @@
+export default [
+ '红色',
+ '绿色',
+ '蓝色',
+ '黄色',
+ '紫色',
+ '薄荷绿色',
+ '蓝绿色',
+ '白色',
+ '黑色',
+ '橙色',
+ '粉红色',
+ '灰色',
+ '红褐色',
+ '蓝紫色',
+ '青绿色',
+ '棕褐色',
+ '天蓝色',
+ '浅橙色',
+ '紫红色',
+ '淡紫色',
+ '淡褐色',
+ '青柠色',
+ '乳白色',
+ '靛蓝色',
+ '金色',
+ '银色',
+];
diff --git a/src/locales/zh_CN/color/index.ts b/src/locales/zh_CN/color/index.ts
new file mode 100644
index 00000000..e7cf1e89
--- /dev/null
+++ b/src/locales/zh_CN/color/index.ts
@@ -0,0 +1,12 @@
+/*
+ * This file is automatically generated.
+ * Run 'pnpm run generate:locales' to update.
+ */
+import type { ColorDefinition } from '../../..';
+import human from './human';
+
+const color: ColorDefinition = {
+ human,
+};
+
+export default color;
diff --git a/src/locales/zh_CN/date/index.ts b/src/locales/zh_CN/date/index.ts
new file mode 100644
index 00000000..a28ce823
--- /dev/null
+++ b/src/locales/zh_CN/date/index.ts
@@ -0,0 +1,14 @@
+/*
+ * This file is automatically generated.
+ * Run 'pnpm run generate:locales' to update.
+ */
+import type { DateDefinition } from '../../..';
+import month from './month';
+import weekday from './weekday';
+
+const date: DateDefinition = {
+ month,
+ weekday,
+};
+
+export default date;
diff --git a/src/locales/zh_CN/date/month.ts b/src/locales/zh_CN/date/month.ts
new file mode 100644
index 00000000..6776eb77
--- /dev/null
+++ b/src/locales/zh_CN/date/month.ts
@@ -0,0 +1,31 @@
+export default {
+ wide: [
+ '1月',
+ '2月',
+ '3月',
+ '4月',
+ '5月',
+ '6月',
+ '7月',
+ '8月',
+ '9月',
+ '10月',
+ '11月',
+ '12月',
+ ],
+
+ abbr: [
+ '1月',
+ '2月',
+ '3月',
+ '4月',
+ '5月',
+ '6月',
+ '7月',
+ '8月',
+ '9月',
+ '10月',
+ '11月',
+ '12月',
+ ],
+};
diff --git a/src/locales/zh_CN/date/weekday.ts b/src/locales/zh_CN/date/weekday.ts
new file mode 100644
index 00000000..a3abfbd9
--- /dev/null
+++ b/src/locales/zh_CN/date/weekday.ts
@@ -0,0 +1,4 @@
+export default {
+ wide: ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
+ abbr: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
+};
diff --git a/src/locales/zh_CN/index.ts b/src/locales/zh_CN/index.ts
index 91cd9e55..b1b4e21e 100644
--- a/src/locales/zh_CN/index.ts
+++ b/src/locales/zh_CN/index.ts
@@ -3,7 +3,9 @@
* Run 'pnpm run generate:locales' to update.
*/
import type { LocaleDefinition } from '../..';
+import color from './color';
import company from './company';
+import date from './date';
import internet from './internet';
import location from './location';
import metadata from './metadata';
@@ -11,7 +13,9 @@ import person from './person';
import phone_number from './phone_number';
const zh_CN: LocaleDefinition = {
+ color,
company,
+ date,
internet,
location,
metadata,