@visulima/humanizer
Version:
Humanizer is a library for humanizing data in a human-readable form.
22 lines (17 loc) • 776 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) => `any${counter === 1 ? "" : "s"}`,
(counter) => `mes${counter === 1 ? "" : "os"}`,
(counter) => `setman${counter === 1 ? "a" : "es"}`,
(counter) => `di${counter === 1 ? "a" : "es"}`,
(counter) => `hor${counter === 1 ? "a" : "es"}`,
(counter) => `minut${counter === 1 ? "" : "s"}`,
(counter) => `segon${counter === 1 ? "" : "s"}`,
(counter) => `milisegon${counter === 1 ? "" : "s"}`,
"d'aquí %s",
"fa %s",
","
);
exports.durationLanguage = durationLanguage;