mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-18 23:09:59 +00:00
19 lines
364 B
TypeScript
19 lines
364 B
TypeScript
![]() |
import humanizeDuration from "humanize-duration";
|
||
|
|
||
|
export const humanizeDurationShort = humanizeDuration.humanizer({
|
||
|
language: "shortEn",
|
||
|
languages: {
|
||
|
shortEn: {
|
||
|
y: () => "y",
|
||
|
mo: () => "mo",
|
||
|
w: () => "w",
|
||
|
d: () => "d",
|
||
|
h: () => "h",
|
||
|
m: () => "m",
|
||
|
s: () => "s",
|
||
|
ms: () => "ms",
|
||
|
},
|
||
|
},
|
||
|
spacer: "",
|
||
|
});
|