v1.0 with SW PWA enabled
This commit is contained in:
2
frontend/node_modules/date-fns/locale/ja/_lib/formatDistance.d.mts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/ja/_lib/formatDistance.d.mts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { FormatDistanceFn } from "../../types.js";
|
||||
export declare const formatDistance: FormatDistanceFn;
|
||||
2
frontend/node_modules/date-fns/locale/ja/_lib/formatDistance.d.ts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/ja/_lib/formatDistance.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { FormatDistanceFn } from "../../types.js";
|
||||
export declare const formatDistance: FormatDistanceFn;
|
||||
119
frontend/node_modules/date-fns/locale/ja/_lib/formatDistance.js
generated
vendored
Normal file
119
frontend/node_modules/date-fns/locale/ja/_lib/formatDistance.js
generated
vendored
Normal file
@ -0,0 +1,119 @@
|
||||
"use strict";
|
||||
exports.formatDistance = void 0;
|
||||
|
||||
const formatDistanceLocale = {
|
||||
lessThanXSeconds: {
|
||||
one: "1秒未満",
|
||||
other: "{{count}}秒未満",
|
||||
oneWithSuffix: "約1秒",
|
||||
otherWithSuffix: "約{{count}}秒",
|
||||
},
|
||||
|
||||
xSeconds: {
|
||||
one: "1秒",
|
||||
other: "{{count}}秒",
|
||||
},
|
||||
|
||||
halfAMinute: "30秒",
|
||||
|
||||
lessThanXMinutes: {
|
||||
one: "1分未満",
|
||||
other: "{{count}}分未満",
|
||||
oneWithSuffix: "約1分",
|
||||
otherWithSuffix: "約{{count}}分",
|
||||
},
|
||||
|
||||
xMinutes: {
|
||||
one: "1分",
|
||||
other: "{{count}}分",
|
||||
},
|
||||
|
||||
aboutXHours: {
|
||||
one: "約1時間",
|
||||
other: "約{{count}}時間",
|
||||
},
|
||||
|
||||
xHours: {
|
||||
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}}年近く",
|
||||
},
|
||||
};
|
||||
|
||||
const formatDistance = (token, count, options) => {
|
||||
options = options || {};
|
||||
|
||||
let result;
|
||||
|
||||
const tokenValue = formatDistanceLocale[token];
|
||||
if (typeof tokenValue === "string") {
|
||||
result = tokenValue;
|
||||
} else if (count === 1) {
|
||||
if (options.addSuffix && tokenValue.oneWithSuffix) {
|
||||
result = tokenValue.oneWithSuffix;
|
||||
} else {
|
||||
result = tokenValue.one;
|
||||
}
|
||||
} else {
|
||||
if (options.addSuffix && tokenValue.otherWithSuffix) {
|
||||
result = tokenValue.otherWithSuffix.replace("{{count}}", String(count));
|
||||
} else {
|
||||
result = tokenValue.other.replace("{{count}}", String(count));
|
||||
}
|
||||
}
|
||||
|
||||
if (options.addSuffix) {
|
||||
if (options.comparison && options.comparison > 0) {
|
||||
return result + "後";
|
||||
} else {
|
||||
return result + "前";
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
exports.formatDistance = formatDistance;
|
||||
115
frontend/node_modules/date-fns/locale/ja/_lib/formatDistance.mjs
generated
vendored
Normal file
115
frontend/node_modules/date-fns/locale/ja/_lib/formatDistance.mjs
generated
vendored
Normal file
@ -0,0 +1,115 @@
|
||||
const formatDistanceLocale = {
|
||||
lessThanXSeconds: {
|
||||
one: "1秒未満",
|
||||
other: "{{count}}秒未満",
|
||||
oneWithSuffix: "約1秒",
|
||||
otherWithSuffix: "約{{count}}秒",
|
||||
},
|
||||
|
||||
xSeconds: {
|
||||
one: "1秒",
|
||||
other: "{{count}}秒",
|
||||
},
|
||||
|
||||
halfAMinute: "30秒",
|
||||
|
||||
lessThanXMinutes: {
|
||||
one: "1分未満",
|
||||
other: "{{count}}分未満",
|
||||
oneWithSuffix: "約1分",
|
||||
otherWithSuffix: "約{{count}}分",
|
||||
},
|
||||
|
||||
xMinutes: {
|
||||
one: "1分",
|
||||
other: "{{count}}分",
|
||||
},
|
||||
|
||||
aboutXHours: {
|
||||
one: "約1時間",
|
||||
other: "約{{count}}時間",
|
||||
},
|
||||
|
||||
xHours: {
|
||||
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}}年近く",
|
||||
},
|
||||
};
|
||||
|
||||
export const formatDistance = (token, count, options) => {
|
||||
options = options || {};
|
||||
|
||||
let result;
|
||||
|
||||
const tokenValue = formatDistanceLocale[token];
|
||||
if (typeof tokenValue === "string") {
|
||||
result = tokenValue;
|
||||
} else if (count === 1) {
|
||||
if (options.addSuffix && tokenValue.oneWithSuffix) {
|
||||
result = tokenValue.oneWithSuffix;
|
||||
} else {
|
||||
result = tokenValue.one;
|
||||
}
|
||||
} else {
|
||||
if (options.addSuffix && tokenValue.otherWithSuffix) {
|
||||
result = tokenValue.otherWithSuffix.replace("{{count}}", String(count));
|
||||
} else {
|
||||
result = tokenValue.other.replace("{{count}}", String(count));
|
||||
}
|
||||
}
|
||||
|
||||
if (options.addSuffix) {
|
||||
if (options.comparison && options.comparison > 0) {
|
||||
return result + "後";
|
||||
} else {
|
||||
return result + "前";
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
2
frontend/node_modules/date-fns/locale/ja/_lib/formatLong.d.mts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/ja/_lib/formatLong.d.mts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { FormatLong } from "../../types.js";
|
||||
export declare const formatLong: FormatLong;
|
||||
2
frontend/node_modules/date-fns/locale/ja/_lib/formatLong.d.ts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/ja/_lib/formatLong.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { FormatLong } from "../../types.js";
|
||||
export declare const formatLong: FormatLong;
|
||||
41
frontend/node_modules/date-fns/locale/ja/_lib/formatLong.js
generated
vendored
Normal file
41
frontend/node_modules/date-fns/locale/ja/_lib/formatLong.js
generated
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
"use strict";
|
||||
exports.formatLong = void 0;
|
||||
var _index = require("../../_lib/buildFormatLongFn.js");
|
||||
|
||||
const dateFormats = {
|
||||
full: "y年M月d日EEEE",
|
||||
long: "y年M月d日",
|
||||
medium: "y/MM/dd",
|
||||
short: "y/MM/dd",
|
||||
};
|
||||
|
||||
const timeFormats = {
|
||||
full: "H時mm分ss秒 zzzz",
|
||||
long: "H:mm:ss z",
|
||||
medium: "H:mm:ss",
|
||||
short: "H:mm",
|
||||
};
|
||||
|
||||
const dateTimeFormats = {
|
||||
full: "{{date}} {{time}}",
|
||||
long: "{{date}} {{time}}",
|
||||
medium: "{{date}} {{time}}",
|
||||
short: "{{date}} {{time}}",
|
||||
};
|
||||
|
||||
const formatLong = (exports.formatLong = {
|
||||
date: (0, _index.buildFormatLongFn)({
|
||||
formats: dateFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
|
||||
time: (0, _index.buildFormatLongFn)({
|
||||
formats: timeFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
|
||||
dateTime: (0, _index.buildFormatLongFn)({
|
||||
formats: dateTimeFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
});
|
||||
39
frontend/node_modules/date-fns/locale/ja/_lib/formatLong.mjs
generated
vendored
Normal file
39
frontend/node_modules/date-fns/locale/ja/_lib/formatLong.mjs
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.mjs";
|
||||
|
||||
const dateFormats = {
|
||||
full: "y年M月d日EEEE",
|
||||
long: "y年M月d日",
|
||||
medium: "y/MM/dd",
|
||||
short: "y/MM/dd",
|
||||
};
|
||||
|
||||
const timeFormats = {
|
||||
full: "H時mm分ss秒 zzzz",
|
||||
long: "H:mm:ss z",
|
||||
medium: "H:mm:ss",
|
||||
short: "H:mm",
|
||||
};
|
||||
|
||||
const dateTimeFormats = {
|
||||
full: "{{date}} {{time}}",
|
||||
long: "{{date}} {{time}}",
|
||||
medium: "{{date}} {{time}}",
|
||||
short: "{{date}} {{time}}",
|
||||
};
|
||||
|
||||
export const formatLong = {
|
||||
date: buildFormatLongFn({
|
||||
formats: dateFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
|
||||
time: buildFormatLongFn({
|
||||
formats: timeFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
|
||||
dateTime: buildFormatLongFn({
|
||||
formats: dateTimeFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
};
|
||||
2
frontend/node_modules/date-fns/locale/ja/_lib/formatRelative.d.mts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/ja/_lib/formatRelative.d.mts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { FormatRelativeFn } from "../../types.js";
|
||||
export declare const formatRelative: FormatRelativeFn;
|
||||
2
frontend/node_modules/date-fns/locale/ja/_lib/formatRelative.d.ts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/ja/_lib/formatRelative.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { FormatRelativeFn } from "../../types.js";
|
||||
export declare const formatRelative: FormatRelativeFn;
|
||||
16
frontend/node_modules/date-fns/locale/ja/_lib/formatRelative.js
generated
vendored
Normal file
16
frontend/node_modules/date-fns/locale/ja/_lib/formatRelative.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
exports.formatRelative = void 0;
|
||||
|
||||
const formatRelativeLocale = {
|
||||
lastWeek: "先週のeeeeのp",
|
||||
yesterday: "昨日のp",
|
||||
today: "今日のp",
|
||||
tomorrow: "明日のp",
|
||||
nextWeek: "翌週のeeeeのp",
|
||||
other: "P",
|
||||
};
|
||||
|
||||
const formatRelative = (token, _date, _baseDate, _options) => {
|
||||
return formatRelativeLocale[token];
|
||||
};
|
||||
exports.formatRelative = formatRelative;
|
||||
12
frontend/node_modules/date-fns/locale/ja/_lib/formatRelative.mjs
generated
vendored
Normal file
12
frontend/node_modules/date-fns/locale/ja/_lib/formatRelative.mjs
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
const formatRelativeLocale = {
|
||||
lastWeek: "先週のeeeeのp",
|
||||
yesterday: "昨日のp",
|
||||
today: "今日のp",
|
||||
tomorrow: "明日のp",
|
||||
nextWeek: "翌週のeeeeのp",
|
||||
other: "P",
|
||||
};
|
||||
|
||||
export const formatRelative = (token, _date, _baseDate, _options) => {
|
||||
return formatRelativeLocale[token];
|
||||
};
|
||||
2
frontend/node_modules/date-fns/locale/ja/_lib/localize.d.mts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/ja/_lib/localize.d.mts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { Localize } from "../../types.js";
|
||||
export declare const localize: Localize;
|
||||
2
frontend/node_modules/date-fns/locale/ja/_lib/localize.d.ts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/ja/_lib/localize.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { Localize } from "../../types.js";
|
||||
export declare const localize: Localize;
|
||||
179
frontend/node_modules/date-fns/locale/ja/_lib/localize.js
generated
vendored
Normal file
179
frontend/node_modules/date-fns/locale/ja/_lib/localize.js
generated
vendored
Normal file
@ -0,0 +1,179 @@
|
||||
"use strict";
|
||||
exports.localize = void 0;
|
||||
var _index = require("../../_lib/buildLocalizeFn.js");
|
||||
|
||||
const eraValues = {
|
||||
narrow: ["BC", "AC"],
|
||||
abbreviated: ["紀元前", "西暦"],
|
||||
wide: ["紀元前", "西暦"],
|
||||
};
|
||||
|
||||
const quarterValues = {
|
||||
narrow: ["1", "2", "3", "4"],
|
||||
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
||||
wide: ["第1四半期", "第2四半期", "第3四半期", "第4四半期"],
|
||||
};
|
||||
|
||||
const monthValues = {
|
||||
narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
|
||||
|
||||
abbreviated: [
|
||||
"1月",
|
||||
"2月",
|
||||
"3月",
|
||||
"4月",
|
||||
"5月",
|
||||
"6月",
|
||||
"7月",
|
||||
"8月",
|
||||
"9月",
|
||||
"10月",
|
||||
"11月",
|
||||
"12月",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"1月",
|
||||
"2月",
|
||||
"3月",
|
||||
"4月",
|
||||
"5月",
|
||||
"6月",
|
||||
"7月",
|
||||
"8月",
|
||||
"9月",
|
||||
"10月",
|
||||
"11月",
|
||||
"12月",
|
||||
],
|
||||
};
|
||||
|
||||
const dayValues = {
|
||||
narrow: ["日", "月", "火", "水", "木", "金", "土"],
|
||||
short: ["日", "月", "火", "水", "木", "金", "土"],
|
||||
abbreviated: ["日", "月", "火", "水", "木", "金", "土"],
|
||||
wide: ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"],
|
||||
};
|
||||
|
||||
const 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: "深夜",
|
||||
},
|
||||
};
|
||||
const 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: "深夜",
|
||||
},
|
||||
};
|
||||
|
||||
const ordinalNumber = (dirtyNumber, options) => {
|
||||
const number = Number(dirtyNumber);
|
||||
const unit = String(options?.unit);
|
||||
|
||||
switch (unit) {
|
||||
case "year":
|
||||
return `${number}年`;
|
||||
case "quarter":
|
||||
return `第${number}四半期`;
|
||||
case "month":
|
||||
return `${number}月`;
|
||||
case "week":
|
||||
return `第${number}週`;
|
||||
case "date":
|
||||
return `${number}日`;
|
||||
case "hour":
|
||||
return `${number}時`;
|
||||
case "minute":
|
||||
return `${number}分`;
|
||||
case "second":
|
||||
return `${number}秒`;
|
||||
default:
|
||||
return `${number}`;
|
||||
}
|
||||
};
|
||||
|
||||
const localize = (exports.localize = {
|
||||
ordinalNumber: ordinalNumber,
|
||||
|
||||
era: (0, _index.buildLocalizeFn)({
|
||||
values: eraValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
quarter: (0, _index.buildLocalizeFn)({
|
||||
values: quarterValues,
|
||||
defaultWidth: "wide",
|
||||
argumentCallback: (quarter) => Number(quarter) - 1,
|
||||
}),
|
||||
|
||||
month: (0, _index.buildLocalizeFn)({
|
||||
values: monthValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
day: (0, _index.buildLocalizeFn)({
|
||||
values: dayValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
dayPeriod: (0, _index.buildLocalizeFn)({
|
||||
values: dayPeriodValues,
|
||||
defaultWidth: "wide",
|
||||
formattingValues: formattingDayPeriodValues,
|
||||
defaultFormattingWidth: "wide",
|
||||
}),
|
||||
});
|
||||
177
frontend/node_modules/date-fns/locale/ja/_lib/localize.mjs
generated
vendored
Normal file
177
frontend/node_modules/date-fns/locale/ja/_lib/localize.mjs
generated
vendored
Normal file
@ -0,0 +1,177 @@
|
||||
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.mjs";
|
||||
|
||||
const eraValues = {
|
||||
narrow: ["BC", "AC"],
|
||||
abbreviated: ["紀元前", "西暦"],
|
||||
wide: ["紀元前", "西暦"],
|
||||
};
|
||||
|
||||
const quarterValues = {
|
||||
narrow: ["1", "2", "3", "4"],
|
||||
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
||||
wide: ["第1四半期", "第2四半期", "第3四半期", "第4四半期"],
|
||||
};
|
||||
|
||||
const monthValues = {
|
||||
narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
|
||||
|
||||
abbreviated: [
|
||||
"1月",
|
||||
"2月",
|
||||
"3月",
|
||||
"4月",
|
||||
"5月",
|
||||
"6月",
|
||||
"7月",
|
||||
"8月",
|
||||
"9月",
|
||||
"10月",
|
||||
"11月",
|
||||
"12月",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"1月",
|
||||
"2月",
|
||||
"3月",
|
||||
"4月",
|
||||
"5月",
|
||||
"6月",
|
||||
"7月",
|
||||
"8月",
|
||||
"9月",
|
||||
"10月",
|
||||
"11月",
|
||||
"12月",
|
||||
],
|
||||
};
|
||||
|
||||
const dayValues = {
|
||||
narrow: ["日", "月", "火", "水", "木", "金", "土"],
|
||||
short: ["日", "月", "火", "水", "木", "金", "土"],
|
||||
abbreviated: ["日", "月", "火", "水", "木", "金", "土"],
|
||||
wide: ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"],
|
||||
};
|
||||
|
||||
const 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: "深夜",
|
||||
},
|
||||
};
|
||||
const 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: "深夜",
|
||||
},
|
||||
};
|
||||
|
||||
const ordinalNumber = (dirtyNumber, options) => {
|
||||
const number = Number(dirtyNumber);
|
||||
const unit = String(options?.unit);
|
||||
|
||||
switch (unit) {
|
||||
case "year":
|
||||
return `${number}年`;
|
||||
case "quarter":
|
||||
return `第${number}四半期`;
|
||||
case "month":
|
||||
return `${number}月`;
|
||||
case "week":
|
||||
return `第${number}週`;
|
||||
case "date":
|
||||
return `${number}日`;
|
||||
case "hour":
|
||||
return `${number}時`;
|
||||
case "minute":
|
||||
return `${number}分`;
|
||||
case "second":
|
||||
return `${number}秒`;
|
||||
default:
|
||||
return `${number}`;
|
||||
}
|
||||
};
|
||||
|
||||
export const localize = {
|
||||
ordinalNumber: ordinalNumber,
|
||||
|
||||
era: buildLocalizeFn({
|
||||
values: eraValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
quarter: buildLocalizeFn({
|
||||
values: quarterValues,
|
||||
defaultWidth: "wide",
|
||||
argumentCallback: (quarter) => Number(quarter) - 1,
|
||||
}),
|
||||
|
||||
month: buildLocalizeFn({
|
||||
values: monthValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
day: buildLocalizeFn({
|
||||
values: dayValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
dayPeriod: buildLocalizeFn({
|
||||
values: dayPeriodValues,
|
||||
defaultWidth: "wide",
|
||||
formattingValues: formattingDayPeriodValues,
|
||||
defaultFormattingWidth: "wide",
|
||||
}),
|
||||
};
|
||||
2
frontend/node_modules/date-fns/locale/ja/_lib/match.d.mts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/ja/_lib/match.d.mts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { Match } from "../../types.js";
|
||||
export declare const match: Match;
|
||||
2
frontend/node_modules/date-fns/locale/ja/_lib/match.d.ts
generated
vendored
Normal file
2
frontend/node_modules/date-fns/locale/ja/_lib/match.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import type { Match } from "../../types.js";
|
||||
export declare const match: Match;
|
||||
120
frontend/node_modules/date-fns/locale/ja/_lib/match.js
generated
vendored
Normal file
120
frontend/node_modules/date-fns/locale/ja/_lib/match.js
generated
vendored
Normal file
@ -0,0 +1,120 @@
|
||||
"use strict";
|
||||
exports.match = void 0;
|
||||
var _index = require("../../_lib/buildMatchPatternFn.js");
|
||||
var _index2 = require("../../_lib/buildMatchFn.js");
|
||||
|
||||
const matchOrdinalNumberPattern = /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i;
|
||||
const parseOrdinalNumberPattern = /\d+/i;
|
||||
|
||||
const matchEraPatterns = {
|
||||
narrow: /^(B\.?C\.?|A\.?D\.?)/i,
|
||||
abbreviated: /^(紀元[前後]|西暦)/i,
|
||||
wide: /^(紀元[前後]|西暦)/i,
|
||||
};
|
||||
const parseEraPatterns = {
|
||||
narrow: [/^B/i, /^A/i],
|
||||
any: [/^(紀元前)/i, /^(西暦|紀元後)/i],
|
||||
};
|
||||
|
||||
const matchQuarterPatterns = {
|
||||
narrow: /^[1234]/i,
|
||||
abbreviated: /^Q[1234]/i,
|
||||
wide: /^第[1234一二三四1234]四半期/i,
|
||||
};
|
||||
const parseQuarterPatterns = {
|
||||
any: [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i],
|
||||
};
|
||||
|
||||
const matchMonthPatterns = {
|
||||
narrow: /^([123456789]|1[012])/,
|
||||
abbreviated: /^([123456789]|1[012])月/i,
|
||||
wide: /^([123456789]|1[012])月/i,
|
||||
};
|
||||
const parseMonthPatterns = {
|
||||
any: [
|
||||
/^1\D/,
|
||||
/^2/,
|
||||
/^3/,
|
||||
/^4/,
|
||||
/^5/,
|
||||
/^6/,
|
||||
/^7/,
|
||||
/^8/,
|
||||
/^9/,
|
||||
/^10/,
|
||||
/^11/,
|
||||
/^12/,
|
||||
],
|
||||
};
|
||||
|
||||
const matchDayPatterns = {
|
||||
narrow: /^[日月火水木金土]/,
|
||||
short: /^[日月火水木金土]/,
|
||||
abbreviated: /^[日月火水木金土]/,
|
||||
wide: /^[日月火水木金土]曜日/,
|
||||
};
|
||||
const parseDayPatterns = {
|
||||
any: [/^日/, /^月/, /^火/, /^水/, /^木/, /^金/, /^土/],
|
||||
};
|
||||
|
||||
const matchDayPeriodPatterns = {
|
||||
any: /^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i,
|
||||
};
|
||||
const parseDayPeriodPatterns = {
|
||||
any: {
|
||||
am: /^(A|午前)/i,
|
||||
pm: /^(P|午後)/i,
|
||||
midnight: /^深夜|真夜中/i,
|
||||
noon: /^正午/i,
|
||||
morning: /^朝/i,
|
||||
afternoon: /^午後/i,
|
||||
evening: /^夜/i,
|
||||
night: /^深夜/i,
|
||||
},
|
||||
};
|
||||
|
||||
const match = (exports.match = {
|
||||
ordinalNumber: (0, _index.buildMatchPatternFn)({
|
||||
matchPattern: matchOrdinalNumberPattern,
|
||||
parsePattern: parseOrdinalNumberPattern,
|
||||
valueCallback: function (value) {
|
||||
return parseInt(value, 10);
|
||||
},
|
||||
}),
|
||||
|
||||
era: (0, _index2.buildMatchFn)({
|
||||
matchPatterns: matchEraPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseEraPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
quarter: (0, _index2.buildMatchFn)({
|
||||
matchPatterns: matchQuarterPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseQuarterPatterns,
|
||||
defaultParseWidth: "any",
|
||||
valueCallback: (index) => index + 1,
|
||||
}),
|
||||
|
||||
month: (0, _index2.buildMatchFn)({
|
||||
matchPatterns: matchMonthPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseMonthPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
day: (0, _index2.buildMatchFn)({
|
||||
matchPatterns: matchDayPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseDayPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
dayPeriod: (0, _index2.buildMatchFn)({
|
||||
matchPatterns: matchDayPeriodPatterns,
|
||||
defaultMatchWidth: "any",
|
||||
parsePatterns: parseDayPeriodPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
});
|
||||
118
frontend/node_modules/date-fns/locale/ja/_lib/match.mjs
generated
vendored
Normal file
118
frontend/node_modules/date-fns/locale/ja/_lib/match.mjs
generated
vendored
Normal file
@ -0,0 +1,118 @@
|
||||
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.mjs";
|
||||
import { buildMatchFn } from "../../_lib/buildMatchFn.mjs";
|
||||
|
||||
const matchOrdinalNumberPattern = /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i;
|
||||
const parseOrdinalNumberPattern = /\d+/i;
|
||||
|
||||
const matchEraPatterns = {
|
||||
narrow: /^(B\.?C\.?|A\.?D\.?)/i,
|
||||
abbreviated: /^(紀元[前後]|西暦)/i,
|
||||
wide: /^(紀元[前後]|西暦)/i,
|
||||
};
|
||||
const parseEraPatterns = {
|
||||
narrow: [/^B/i, /^A/i],
|
||||
any: [/^(紀元前)/i, /^(西暦|紀元後)/i],
|
||||
};
|
||||
|
||||
const matchQuarterPatterns = {
|
||||
narrow: /^[1234]/i,
|
||||
abbreviated: /^Q[1234]/i,
|
||||
wide: /^第[1234一二三四1234]四半期/i,
|
||||
};
|
||||
const parseQuarterPatterns = {
|
||||
any: [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i],
|
||||
};
|
||||
|
||||
const matchMonthPatterns = {
|
||||
narrow: /^([123456789]|1[012])/,
|
||||
abbreviated: /^([123456789]|1[012])月/i,
|
||||
wide: /^([123456789]|1[012])月/i,
|
||||
};
|
||||
const parseMonthPatterns = {
|
||||
any: [
|
||||
/^1\D/,
|
||||
/^2/,
|
||||
/^3/,
|
||||
/^4/,
|
||||
/^5/,
|
||||
/^6/,
|
||||
/^7/,
|
||||
/^8/,
|
||||
/^9/,
|
||||
/^10/,
|
||||
/^11/,
|
||||
/^12/,
|
||||
],
|
||||
};
|
||||
|
||||
const matchDayPatterns = {
|
||||
narrow: /^[日月火水木金土]/,
|
||||
short: /^[日月火水木金土]/,
|
||||
abbreviated: /^[日月火水木金土]/,
|
||||
wide: /^[日月火水木金土]曜日/,
|
||||
};
|
||||
const parseDayPatterns = {
|
||||
any: [/^日/, /^月/, /^火/, /^水/, /^木/, /^金/, /^土/],
|
||||
};
|
||||
|
||||
const matchDayPeriodPatterns = {
|
||||
any: /^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i,
|
||||
};
|
||||
const parseDayPeriodPatterns = {
|
||||
any: {
|
||||
am: /^(A|午前)/i,
|
||||
pm: /^(P|午後)/i,
|
||||
midnight: /^深夜|真夜中/i,
|
||||
noon: /^正午/i,
|
||||
morning: /^朝/i,
|
||||
afternoon: /^午後/i,
|
||||
evening: /^夜/i,
|
||||
night: /^深夜/i,
|
||||
},
|
||||
};
|
||||
|
||||
export const match = {
|
||||
ordinalNumber: buildMatchPatternFn({
|
||||
matchPattern: matchOrdinalNumberPattern,
|
||||
parsePattern: parseOrdinalNumberPattern,
|
||||
valueCallback: function (value) {
|
||||
return parseInt(value, 10);
|
||||
},
|
||||
}),
|
||||
|
||||
era: buildMatchFn({
|
||||
matchPatterns: matchEraPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseEraPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
quarter: buildMatchFn({
|
||||
matchPatterns: matchQuarterPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseQuarterPatterns,
|
||||
defaultParseWidth: "any",
|
||||
valueCallback: (index) => index + 1,
|
||||
}),
|
||||
|
||||
month: buildMatchFn({
|
||||
matchPatterns: matchMonthPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseMonthPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
day: buildMatchFn({
|
||||
matchPatterns: matchDayPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseDayPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
dayPeriod: buildMatchFn({
|
||||
matchPatterns: matchDayPeriodPatterns,
|
||||
defaultMatchWidth: "any",
|
||||
parsePatterns: parseDayPeriodPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
};
|
||||
Reference in New Issue
Block a user