aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/locale/zh-TW
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-06-28 17:26:46 -0700
committerPinapelz <yukais@pinapelz.com>2025-06-28 17:43:56 -0700
commite4fa1e69e7ebfb627c7198fd1a9881e9327ec4d4 (patch)
tree06284a538a6008eca75051399e47db4e5d50301c /node_modules/date-fns/locale/zh-TW
initial commit: scaffolding
Diffstat (limited to 'node_modules/date-fns/locale/zh-TW')
-rw-r--r--node_modules/date-fns/locale/zh-TW/_lib/formatDistance/index.js91
-rw-r--r--node_modules/date-fns/locale/zh-TW/_lib/formatLong/index.js43
-rw-r--r--node_modules/date-fns/locale/zh-TW/_lib/formatRelative/index.js20
-rw-r--r--node_modules/date-fns/locale/zh-TW/_lib/localize/index.js139
-rw-r--r--node_modules/date-fns/locale/zh-TW/_lib/match/index.js105
-rw-r--r--node_modules/date-fns/locale/zh-TW/index.d.ts4
-rw-r--r--node_modules/date-fns/locale/zh-TW/index.js37
-rw-r--r--node_modules/date-fns/locale/zh-TW/index.js.flow35
-rw-r--r--node_modules/date-fns/locale/zh-TW/package.json5
9 files changed, 479 insertions, 0 deletions
diff --git a/node_modules/date-fns/locale/zh-TW/_lib/formatDistance/index.js b/node_modules/date-fns/locale/zh-TW/_lib/formatDistance/index.js
new file mode 100644
index 0000000..a95b050
--- /dev/null
+++ b/node_modules/date-fns/locale/zh-TW/_lib/formatDistance/index.js
@@ -0,0 +1,91 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var formatDistanceLocale = {
+ lessThanXSeconds: {
+ one: '少於 1 秒',
+ other: '少於 {{count}} 秒'
+ },
+ xSeconds: {
+ one: '1 秒',
+ other: '{{count}} 秒'
+ },
+ halfAMinute: '半分鐘',
+ lessThanXMinutes: {
+ one: '少於 1 分鐘',
+ other: '少於 {{count}} 分鐘'
+ },
+ xMinutes: {
+ one: '1 分鐘',
+ other: '{{count}} 分鐘'
+ },
+ xHours: {
+ one: '1 小時',
+ other: '{{count}} 小時'
+ },
+ aboutXHours: {
+ one: '大約 1 小時',
+ other: '大約 {{count}} 小時'
+ },
+ xDays: {
+ one: '1 天',
+ other: '{{count}} 天'
+ },
+ aboutXWeeks: {
+ one: '大約 1 個星期',
+ other: '大約 {{count}} 個星期'
+ },
+ xWeeks: {
+ one: '1 個星期',
+ other: '{{count}} 個星期'
+ },
+ aboutXMonths: {
+ one: '大約 1 個月',
+ other: '大約 {{count}} 個月'
+ },
+ xMonths: {
+ one: '1 個月',
+ other: '{{count}} 個月'
+ },
+ aboutXYears: {
+ one: '大約 1 年',
+ other: '大約 {{count}} 年'
+ },
+ xYears: {
+ one: '1 年',
+ other: '{{count}} 年'
+ },
+ overXYears: {
+ one: '超過 1 年',
+ other: '超過 {{count}} 年'
+ },
+ almostXYears: {
+ one: '將近 1 年',
+ other: '將近 {{count}} 年'
+ }
+};
+var formatDistance = function formatDistance(token, count, options) {
+ var result;
+ var tokenValue = formatDistanceLocale[token];
+ if (typeof tokenValue === 'string') {
+ result = tokenValue;
+ } else if (count === 1) {
+ result = tokenValue.one;
+ } else {
+ result = tokenValue.other.replace('{{count}}', String(count));
+ }
+ if (options !== null && options !== void 0 && options.addSuffix) {
+ if (options.comparison && options.comparison > 0) {
+ return result + '內';
+ } else {
+ return result + '前';
+ }
+ }
+ return result;
+};
+var _default = formatDistance;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/zh-TW/_lib/formatLong/index.js b/node_modules/date-fns/locale/zh-TW/_lib/formatLong/index.js
new file mode 100644
index 0000000..a822a2a
--- /dev/null
+++ b/node_modules/date-fns/locale/zh-TW/_lib/formatLong/index.js
@@ -0,0 +1,43 @@
+"use strict";
+
+var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js"));
+var dateFormats = {
+ full: "y'年'M'月'd'日' EEEE",
+ long: "y'年'M'月'd'日'",
+ medium: 'yyyy-MM-dd',
+ short: 'yy-MM-dd'
+};
+var timeFormats = {
+ full: 'zzzz a h:mm:ss',
+ long: 'z a h:mm:ss',
+ medium: 'a h:mm:ss',
+ short: 'a h:mm'
+};
+var dateTimeFormats = {
+ full: '{{date}} {{time}}',
+ long: '{{date}} {{time}}',
+ medium: '{{date}} {{time}}',
+ short: '{{date}} {{time}}'
+};
+var formatLong = {
+ date: (0, _index.default)({
+ formats: dateFormats,
+ defaultWidth: 'full'
+ }),
+ time: (0, _index.default)({
+ formats: timeFormats,
+ defaultWidth: 'full'
+ }),
+ dateTime: (0, _index.default)({
+ formats: dateTimeFormats,
+ defaultWidth: 'full'
+ })
+};
+var _default = formatLong;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/zh-TW/_lib/formatRelative/index.js b/node_modules/date-fns/locale/zh-TW/_lib/formatRelative/index.js
new file mode 100644
index 0000000..a2cad1a
--- /dev/null
+++ b/node_modules/date-fns/locale/zh-TW/_lib/formatRelative/index.js
@@ -0,0 +1,20 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var formatRelativeLocale = {
+ lastWeek: "'上個'eeee p",
+ yesterday: "'昨天' p",
+ today: "'今天' p",
+ tomorrow: "'明天' p",
+ nextWeek: "'下個'eeee p",
+ other: 'P'
+};
+var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
+ return formatRelativeLocale[token];
+};
+var _default = formatRelative;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/zh-TW/_lib/localize/index.js b/node_modules/date-fns/locale/zh-TW/_lib/localize/index.js
new file mode 100644
index 0000000..d9eaf6b
--- /dev/null
+++ b/node_modules/date-fns/locale/zh-TW/_lib/localize/index.js
@@ -0,0 +1,139 @@
+"use strict";
+
+var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js"));
+var eraValues = {
+ narrow: ['前', '公元'],
+ abbreviated: ['前', '公元'],
+ wide: ['公元前', '公元']
+};
+var quarterValues = {
+ narrow: ['1', '2', '3', '4'],
+ abbreviated: ['第一刻', '第二刻', '第三刻', '第四刻'],
+ wide: ['第一刻鐘', '第二刻鐘', '第三刻鐘', '第四刻鐘']
+};
+var monthValues = {
+ narrow: ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'],
+ abbreviated: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
+ wide: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
+};
+var dayValues = {
+ narrow: ['日', '一', '二', '三', '四', '五', '六'],
+ short: ['日', '一', '二', '三', '四', '五', '六'],
+ abbreviated: ['週日', '週一', '週二', '週三', '週四', '週五', '週六'],
+ wide: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
+};
+var dayPeriodValues = {
+ narrow: {
+ am: '上',
+ pm: '下',
+ midnight: '凌晨',
+ noon: '午',
+ morning: '早',
+ afternoon: '下午',
+ evening: '晚',
+ night: '夜'
+ },
+ abbreviated: {
+ am: '上午',
+ pm: '下午',
+ midnight: '凌晨',
+ noon: '中午',
+ morning: '早晨',
+ afternoon: '中午',
+ evening: '晚上',
+ night: '夜間'
+ },
+ wide: {
+ am: '上午',
+ pm: '下午',
+ midnight: '凌晨',
+ noon: '中午',
+ morning: '早晨',
+ afternoon: '中午',
+ evening: '晚上',
+ night: '夜間'
+ }
+};
+var formattingDayPeriodValues = {
+ narrow: {
+ am: '上',
+ pm: '下',
+ midnight: '凌晨',
+ noon: '午',
+ morning: '早',
+ afternoon: '下午',
+ evening: '晚',
+ night: '夜'
+ },
+ abbreviated: {
+ am: '上午',
+ pm: '下午',
+ midnight: '凌晨',
+ noon: '中午',
+ morning: '早晨',
+ afternoon: '中午',
+ evening: '晚上',
+ night: '夜間'
+ },
+ wide: {
+ am: '上午',
+ pm: '下午',
+ midnight: '凌晨',
+ noon: '中午',
+ morning: '早晨',
+ afternoon: '中午',
+ evening: '晚上',
+ night: '夜間'
+ }
+};
+var ordinalNumber = function ordinalNumber(dirtyNumber, options) {
+ var number = Number(dirtyNumber);
+ switch (options === null || options === void 0 ? void 0 : options.unit) {
+ case 'date':
+ return number + '日';
+ case 'hour':
+ return number + '時';
+ case 'minute':
+ return number + '分';
+ case 'second':
+ return number + '秒';
+ default:
+ return '第 ' + number;
+ }
+};
+var localize = {
+ ordinalNumber: ordinalNumber,
+ era: (0, _index.default)({
+ values: eraValues,
+ defaultWidth: 'wide'
+ }),
+ quarter: (0, _index.default)({
+ values: quarterValues,
+ defaultWidth: 'wide',
+ argumentCallback: function argumentCallback(quarter) {
+ return quarter - 1;
+ }
+ }),
+ month: (0, _index.default)({
+ values: monthValues,
+ defaultWidth: 'wide'
+ }),
+ day: (0, _index.default)({
+ values: dayValues,
+ defaultWidth: 'wide'
+ }),
+ dayPeriod: (0, _index.default)({
+ values: dayPeriodValues,
+ defaultWidth: 'wide',
+ formattingValues: formattingDayPeriodValues,
+ defaultFormattingWidth: 'wide'
+ })
+};
+var _default = localize;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/zh-TW/_lib/match/index.js b/node_modules/date-fns/locale/zh-TW/_lib/match/index.js
new file mode 100644
index 0000000..6d4872d
--- /dev/null
+++ b/node_modules/date-fns/locale/zh-TW/_lib/match/index.js
@@ -0,0 +1,105 @@
+"use strict";
+
+var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js"));
+var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js"));
+var matchOrdinalNumberPattern = /^(第\s*)?\d+(日|時|分|秒)?/i;
+var parseOrdinalNumberPattern = /\d+/i;
+var matchEraPatterns = {
+ narrow: /^(前)/i,
+ abbreviated: /^(前)/i,
+ wide: /^(公元前|公元)/i
+};
+var parseEraPatterns = {
+ any: [/^(前)/i, /^(公元)/i]
+};
+var matchQuarterPatterns = {
+ narrow: /^[1234]/i,
+ abbreviated: /^第[一二三四]刻/i,
+ wide: /^第[一二三四]刻鐘/i
+};
+var parseQuarterPatterns = {
+ any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i]
+};
+var matchMonthPatterns = {
+ narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i,
+ abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,
+ wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i
+};
+var parseMonthPatterns = {
+ narrow: [/^一/i, /^二/i, /^三/i, /^四/i, /^五/i, /^六/i, /^七/i, /^八/i, /^九/i, /^十(?!(一|二))/i, /^十一/i, /^十二/i],
+ any: [/^一|1/i, /^二|2/i, /^三|3/i, /^四|4/i, /^五|5/i, /^六|6/i, /^七|7/i, /^八|8/i, /^九|9/i, /^十(?!(一|二))|10/i, /^十一|11/i, /^十二|12/i]
+};
+var matchDayPatterns = {
+ narrow: /^[一二三四五六日]/i,
+ short: /^[一二三四五六日]/i,
+ abbreviated: /^週[一二三四五六日]/i,
+ wide: /^星期[一二三四五六日]/i
+};
+var parseDayPatterns = {
+ any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i]
+};
+var matchDayPeriodPatterns = {
+ any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i
+};
+var parseDayPeriodPatterns = {
+ any: {
+ am: /^上午?/i,
+ pm: /^下午?/i,
+ midnight: /^午夜/i,
+ noon: /^[中正]午/i,
+ morning: /^早上/i,
+ afternoon: /^下午/i,
+ evening: /^晚上?/i,
+ night: /^凌晨/i
+ }
+};
+var match = {
+ ordinalNumber: (0, _index2.default)({
+ matchPattern: matchOrdinalNumberPattern,
+ parsePattern: parseOrdinalNumberPattern,
+ valueCallback: function valueCallback(value) {
+ return parseInt(value, 10);
+ }
+ }),
+ era: (0, _index.default)({
+ matchPatterns: matchEraPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseEraPatterns,
+ defaultParseWidth: 'any'
+ }),
+ quarter: (0, _index.default)({
+ matchPatterns: matchQuarterPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseQuarterPatterns,
+ defaultParseWidth: 'any',
+ valueCallback: function valueCallback(index) {
+ return index + 1;
+ }
+ }),
+ month: (0, _index.default)({
+ matchPatterns: matchMonthPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseMonthPatterns,
+ defaultParseWidth: 'any'
+ }),
+ day: (0, _index.default)({
+ matchPatterns: matchDayPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseDayPatterns,
+ defaultParseWidth: 'any'
+ }),
+ dayPeriod: (0, _index.default)({
+ matchPatterns: matchDayPeriodPatterns,
+ defaultMatchWidth: 'any',
+ parsePatterns: parseDayPeriodPatterns,
+ defaultParseWidth: 'any'
+ })
+};
+var _default = match;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/zh-TW/index.d.ts b/node_modules/date-fns/locale/zh-TW/index.d.ts
new file mode 100644
index 0000000..745a08f
--- /dev/null
+++ b/node_modules/date-fns/locale/zh-TW/index.d.ts
@@ -0,0 +1,4 @@
+// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
+
+import { zhTW } from 'date-fns/locale'
+export default zhTW
diff --git a/node_modules/date-fns/locale/zh-TW/index.js b/node_modules/date-fns/locale/zh-TW/index.js
new file mode 100644
index 0000000..0122eb2
--- /dev/null
+++ b/node_modules/date-fns/locale/zh-TW/index.js
@@ -0,0 +1,37 @@
+"use strict";
+
+var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js"));
+var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js"));
+var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js"));
+var _index4 = _interopRequireDefault(require("./_lib/localize/index.js"));
+var _index5 = _interopRequireDefault(require("./_lib/match/index.js"));
+/**
+ * @type {Locale}
+ * @category Locales
+ * @summary Chinese Traditional locale.
+ * @language Chinese Traditional
+ * @iso-639-2 zho
+ * @author tonypai [@tpai]{@link https://github.com/tpai}
+ * @author Jack Hsu [@jackhsu978]{@link https://github.com/jackhsu978}
+ * @author Terrence Lam [@skyuplam]{@link https://github.com/skyuplam}
+ */
+var locale = {
+ code: 'zh-TW',
+ formatDistance: _index.default,
+ formatLong: _index2.default,
+ formatRelative: _index3.default,
+ localize: _index4.default,
+ match: _index5.default,
+ options: {
+ weekStartsOn: 1 /* Monday */,
+ firstWeekContainsDate: 4
+ }
+};
+var _default = locale;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/zh-TW/index.js.flow b/node_modules/date-fns/locale/zh-TW/index.js.flow
new file mode 100644
index 0000000..b9dfe66
--- /dev/null
+++ b/node_modules/date-fns/locale/zh-TW/index.js.flow
@@ -0,0 +1,35 @@
+// @flow
+// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
+
+export type Locale = {
+ code?: string,
+ formatDistance?: (...args: Array<any>) => any,
+ formatRelative?: (...args: Array<any>) => any,
+ localize?: {
+ ordinalNumber: (...args: Array<any>) => any,
+ era: (...args: Array<any>) => any,
+ quarter: (...args: Array<any>) => any,
+ month: (...args: Array<any>) => any,
+ day: (...args: Array<any>) => any,
+ dayPeriod: (...args: Array<any>) => any,
+ },
+ formatLong?: {
+ date: (...args: Array<any>) => any,
+ time: (...args: Array<any>) => any,
+ dateTime: (...args: Array<any>) => any,
+ },
+ match?: {
+ ordinalNumber: (...args: Array<any>) => any,
+ era: (...args: Array<any>) => any,
+ quarter: (...args: Array<any>) => any,
+ month: (...args: Array<any>) => any,
+ day: (...args: Array<any>) => any,
+ dayPeriod: (...args: Array<any>) => any,
+ },
+ options?: {
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
+ firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
+ },
+}
+
+declare module.exports: Locale
diff --git a/node_modules/date-fns/locale/zh-TW/package.json b/node_modules/date-fns/locale/zh-TW/package.json
new file mode 100644
index 0000000..4c08c78
--- /dev/null
+++ b/node_modules/date-fns/locale/zh-TW/package.json
@@ -0,0 +1,5 @@
+{
+ "sideEffects": false,
+ "module": "../../esm/locale/zh-TW/index.js",
+ "typings": "../../typings.d.ts"
+} \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage