aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-06-29 11:49:28 -0700
committerPinapelz <yukais@pinapelz.com>2025-06-29 11:49:28 -0700
commitd55b767039605256c736166a942a9138e3eacfd7 (patch)
tree947063b634c50d438a794325f13275e134aa5993 /node_modules/date-fns/locale/ja-Hira/_lib/formatDistance
parent864ce67d89c77d8ef9c3361f80d619853abcf91c (diff)
remove dev node_modules (oops)
Diffstat (limited to 'node_modules/date-fns/locale/ja-Hira/_lib/formatDistance')
-rw-r--r--node_modules/date-fns/locale/ja-Hira/_lib/formatDistance/index.js104
1 files changed, 0 insertions, 104 deletions
diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance/index.js
deleted file mode 100644
index 6f0c7d7..0000000
--- a/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance/index.js
+++ /dev/null
@@ -1,104 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-var 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}}ねんちかく'
- }
-};
-var formatDistance = function formatDistance(token, count, options) {
- options = options || {};
- var result;
- var 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;
-};
-var _default = formatDistance;
-exports.default = _default;
-module.exports = exports.default; \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage