@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) => `año${counter === 1 ? "" : "s"}`,
(counter) => `mes${counter === 1 ? "" : "es"}`,
(counter) => `semana${counter === 1 ? "" : "s"}`,
(counter) => `día${counter === 1 ? "" : "s"}`,
(counter) => `hora${counter === 1 ? "" : "s"}`,
(counter) => `minuto${counter === 1 ? "" : "s"}`,
(counter) => `segundo${counter === 1 ? "" : "s"}`,
(counter) => `milisegundo${counter === 1 ? "" : "s"}`,
"en %s",
"hace %s",
","
);
exports.durationLanguage = durationLanguage;