@visulima/humanizer
Version:
Humanizer is a library for humanizing data in a human-readable form.
17 lines (14 loc) • 660 B
JavaScript
import createDurationLanguage from './util/create-duration-language.mjs';
const durationLanguage = createDurationLanguage(
(counter) => counter === 1 ? "שנה" : "שנים",
(counter) => counter === 1 ? "חודש" : "חודשים",
(counter) => counter === 1 ? "שבוע" : "שבועות",
(counter) => counter === 1 ? "יום" : "ימים",
(counter) => counter === 1 ? "שעה" : "שעות",
(counter) => counter === 1 ? "דקה" : "דקות",
(counter) => counter === 1 ? "שניה" : "שניות",
(counter) => counter === 1 ? "מילישנייה" : "מילישניות",
"בעוד %s",
"לפני %s"
);
export { durationLanguage };