@visulima/humanizer
Version:
Humanizer is a library for humanizing data in a human-readable form.
22 lines (17 loc) • 783 B
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
const language_util_createDurationLanguage = require('./util/create-duration-language.cjs');
const durationLanguage = language_util_createDurationLanguage(
(counter) => `jaro${counter === 1 ? "" : "j"}`,
(counter) => `monato${counter === 1 ? "" : "j"}`,
(counter) => `semajno${counter === 1 ? "" : "j"}`,
(counter) => `tago${counter === 1 ? "" : "j"}`,
(counter) => `horo${counter === 1 ? "" : "j"}`,
(counter) => `minuto${counter === 1 ? "" : "j"}`,
(counter) => `sekundo${counter === 1 ? "" : "j"}`,
(counter) => `milisekundo${counter === 1 ? "" : "j"}`,
"post %s",
"antaŭ %s",
","
);
exports.durationLanguage = durationLanguage;