Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(locale): Fully Improve zh_TW #2320

Merged
merged 10 commits into from
Aug 20, 2023
28 changes: 28 additions & 0 deletions src/locales/zh_TW/color/human.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
export default [
'紅色',
'綠色',
'藍色',
'黃色',
'紫色',
'薄荷綠色',
'藍綠色',
'白色',
'黑色',
'橙色',
'粉紅色',
'灰色',
'紅褐色',
'藍紫色',
'青綠色',
'棕褐色',
'天藍色',
'淺橙色',
'紫紅色',
'淡紫色',
'淡褐色',
'青檸色',
'乳白色',
'靛藍色',
'金色',
'銀色',
];
12 changes: 12 additions & 0 deletions src/locales/zh_TW/color/index.ts
Original file line number Diff line number Diff line change
@@ -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;
14 changes: 14 additions & 0 deletions src/locales/zh_TW/date/index.ts
Original file line number Diff line number Diff line change
@@ -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;
31 changes: 31 additions & 0 deletions src/locales/zh_TW/date/month.ts
Original file line number Diff line number Diff line change
@@ -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月',
],
};
4 changes: 4 additions & 0 deletions src/locales/zh_TW/date/weekday.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
wide: ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
abbr: ['週日', '週一', '週二', '週三', '週四', '週五', '週六'],
};
4 changes: 4 additions & 0 deletions src/locales/zh_TW/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Run 'pnpm run generate:locales' to update.
*/
import type { LocaleDefinition } from '../..';
import color from './color';
import date from './date';
import location from './location';
import metadata from './metadata';
import person from './person';
Expand All @@ -13,6 +15,8 @@ const zh_TW: LocaleDefinition = {
metadata,
person,
phone_number,
color,
date,
};

export default zh_TW;
2 changes: 1 addition & 1 deletion src/locales/zh_TW/location/default_country.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default ['Taiwan (R.O.C.)'];
export default ['中國臺灣'];