diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-06-29 11:49:28 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-06-29 11:49:28 -0700 |
| commit | d55b767039605256c736166a942a9138e3eacfd7 (patch) | |
| tree | 947063b634c50d438a794325f13275e134aa5993 /node_modules/date-fns/esm/locale/pl/_lib/formatRelative | |
| parent | 864ce67d89c77d8ef9c3361f80d619853abcf91c (diff) | |
remove dev node_modules (oops)
Diffstat (limited to 'node_modules/date-fns/esm/locale/pl/_lib/formatRelative')
| -rw-r--r-- | node_modules/date-fns/esm/locale/pl/_lib/formatRelative/index.js | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/node_modules/date-fns/esm/locale/pl/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/pl/_lib/formatRelative/index.js deleted file mode 100644 index 9da8456..0000000 --- a/node_modules/date-fns/esm/locale/pl/_lib/formatRelative/index.js +++ /dev/null @@ -1,54 +0,0 @@ -import isSameUTCWeek from "../../../../_lib/isSameUTCWeek/index.js"; -var adjectivesLastWeek = { - masculine: 'ostatni', - feminine: 'ostatnia' -}; -var adjectivesThisWeek = { - masculine: 'ten', - feminine: 'ta' -}; -var adjectivesNextWeek = { - masculine: 'następny', - feminine: 'następna' -}; -var dayGrammaticalGender = { - 0: 'feminine', - 1: 'masculine', - 2: 'masculine', - 3: 'feminine', - 4: 'masculine', - 5: 'masculine', - 6: 'feminine' -}; -function dayAndTimeWithAdjective(token, date, baseDate, options) { - var adjectives; - if (isSameUTCWeek(date, baseDate, options)) { - adjectives = adjectivesThisWeek; - } else if (token === 'lastWeek') { - adjectives = adjectivesLastWeek; - } else if (token === 'nextWeek') { - adjectives = adjectivesNextWeek; - } else { - throw new Error("Cannot determine adjectives for token ".concat(token)); - } - var day = date.getUTCDay(); - var grammaticalGender = dayGrammaticalGender[day]; - var adjective = adjectives[grammaticalGender]; - return "'".concat(adjective, "' eeee 'o' p"); -} -var formatRelativeLocale = { - lastWeek: dayAndTimeWithAdjective, - yesterday: "'wczoraj o' p", - today: "'dzisiaj o' p", - tomorrow: "'jutro o' p", - nextWeek: dayAndTimeWithAdjective, - other: 'P' -}; -var formatRelative = function formatRelative(token, date, baseDate, options) { - var format = formatRelativeLocale[token]; - if (typeof format === 'function') { - return format(token, date, baseDate, options); - } - return format; -}; -export default formatRelative;
\ No newline at end of file |
