Skip to content

Commit

Permalink
Update zh-TW locale (#2436)
Browse files Browse the repository at this point in the history
Fixed Taiwanese locale to use traditional Chinese and removed unnecessary spaces.
  • Loading branch information
brownsugar committed May 28, 2021
1 parent deee6a3 commit c6d080f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
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 |

0 comments on commit c6d080f

Please sign in to comment.