@visulima/humanizer
Version:
Humanizer is a library for humanizing data in a human-readable form.
22 lines (17 loc) • 780 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) => `ann${counter === 1 ? "o" : "i"}`,
(counter) => `mes${counter === 1 ? "e" : "i"}`,
(counter) => `settiman${counter === 1 ? "a" : "e"}`,
(counter) => `giorn${counter === 1 ? "o" : "i"}`,
(counter) => `or${counter === 1 ? "a" : "e"}`,
(counter) => `minut${counter === 1 ? "o" : "i"}`,
(counter) => `second${counter === 1 ? "o" : "i"}`,
(counter) => `millisecond${counter === 1 ? "o" : "i"}`,
"tra %s",
"%s fa",
","
);
exports.durationLanguage = durationLanguage;