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

Update zh-TW locale #2436

Merged
merged 2 commits into from May 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 18 additions & 18 deletions src/locale/zh-TW/_lib/formatDistance/index.js
@@ -1,80 +1,80 @@
var formatDistanceLocale = {
lessThanXSeconds: {
one: '少於 1 秒',
other: '少於 {{count}} 秒'
other: '少於 {{count}} 秒',
},

xSeconds: {
one: '1 秒',
other: '{{count}} 秒'
other: '{{count}} 秒',
},

halfAMinute: '半分鐘',

lessThanXMinutes: {
one: '少於 1 分鐘',
other: '少於 {{count}} 分鐘'
other: '少於 {{count}} 分鐘',
},

xMinutes: {
one: '1 分鐘',
other: '{{count}} 分鐘'
other: '{{count}} 分鐘',
},

xHours: {
one: '1 小時',
other: '{{count}} 小時'
other: '{{count}} 小時',
},

aboutXHours: {
one: '大約 1 小時',
other: '大約 {{count}} 小時'
other: '大約 {{count}} 小時',
},

xDays: {
one: '1 天',
other: '{{count}} 天'
other: '{{count}} 天',
},

aboutXWeeks: {
one: '大約 1 个星期',
other: '大約 {{count}} 个星期'
one: '大約 1 個星期',
other: '大約 {{count}} 個星期',
},

xWeeks: {
one: '1 个星期',
other: '{{count}} 个星期'
one: '1 個星期',
other: '{{count}} 個星期',
},

aboutXMonths: {
one: '大約 1 個月',
other: '大約 {{count}} 個月'
other: '大約 {{count}} 個月',
},

xMonths: {
one: '1 個月',
other: '{{count}} 個月'
other: '{{count}} 個月',
},

aboutXYears: {
one: '大約 1 年',
other: '大約 {{count}} 年'
other: '大約 {{count}} 年',
},

xYears: {
one: '1 年',
other: '{{count}} 年'
other: '{{count}} 年',
},

overXYears: {
one: '超過 1 年',
other: '超過 {{count}} 年'
other: '超過 {{count}} 年',
},

almostXYears: {
one: '將近 1 年',
other: '將近 {{count}} 年'
}
other: '將近 {{count}} 年',
},
}

export default function formatDistance(token, count, options) {
Expand Down
6 changes: 3 additions & 3 deletions src/locale/zh-TW/_lib/formatRelative/index.js
@@ -1,10 +1,10 @@
var formatRelativeLocale = {
lastWeek: "'上個' eeee p",
lastWeek: "'上個'eeee p",
yesterday: "'昨天' p",
today: "'今天' p",
tomorrow: "'明天' p",
nextWeek: "'下個' eeee p",
other: 'P'
nextWeek: "'下個'eeee p",
other: 'P',
}

export default function formatRelative(token, _date, _baseDate, _options) {
Expand Down
18 changes: 9 additions & 9 deletions src/locale/zh-TW/snapshot.md
Expand Up @@ -293,12 +293,12 @@ If now is January 1st, 2000, 00:00.

If now is January 1st, 2000, 00:00.

| Date | Result |
| ------------------------ | ---------------------- |
| 2000-01-10T00:00:00.000Z | 00-01-10 |
| 2000-01-05T00:00:00.000Z | 下個 星期三 上午 12:00 |
| 2000-01-02T00:00:00.000Z | 明天 上午 12:00 |
| 2000-01-01T00:00:00.000Z | 今天 上午 12:00 |
| 1999-12-31T00:00:00.000Z | 昨天 上午 12:00 |
| 1999-12-27T00:00:00.000Z | 上個 星期一 上午 12:00 |
| 1999-12-21T00:00:00.000Z | 99-12-21 |
| Date | Result |
| ------------------------ | --------------------- |
| 2000-01-10T00:00:00.000Z | 00-01-10 |
| 2000-01-05T00:00:00.000Z | 下個星期三 上午 12:00 |
| 2000-01-02T00:00:00.000Z | 明天 上午 12:00 |
| 2000-01-01T00:00:00.000Z | 今天 上午 12:00 |
| 1999-12-31T00:00:00.000Z | 昨天 上午 12:00 |
| 1999-12-27T00:00:00.000Z | 上個星期一 上午 12:00 |
| 1999-12-21T00:00:00.000Z | 99-12-21 |