From c6d080f1780673910a6adbaec5deda14cd4796a1 Mon Sep 17 00:00:00 2001 From: Lay Date: Fri, 28 May 2021 12:54:29 +0800 Subject: [PATCH] Update zh-TW locale (#2436) Fixed Taiwanese locale to use traditional Chinese and removed unnecessary spaces. --- src/locale/zh-TW/_lib/formatDistance/index.js | 36 +++++++++---------- src/locale/zh-TW/_lib/formatRelative/index.js | 6 ++-- src/locale/zh-TW/snapshot.md | 18 +++++----- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/locale/zh-TW/_lib/formatDistance/index.js b/src/locale/zh-TW/_lib/formatDistance/index.js index 04832159c5..affa5509ea 100644 --- a/src/locale/zh-TW/_lib/formatDistance/index.js +++ b/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) { diff --git a/src/locale/zh-TW/_lib/formatRelative/index.js b/src/locale/zh-TW/_lib/formatRelative/index.js index 10e96c33e4..fed98576be 100644 --- a/src/locale/zh-TW/_lib/formatRelative/index.js +++ b/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) { diff --git a/src/locale/zh-TW/snapshot.md b/src/locale/zh-TW/snapshot.md index 48f0144104..787f7e0408 100644 --- a/src/locale/zh-TW/snapshot.md +++ b/src/locale/zh-TW/snapshot.md @@ -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 |