UNPKG

@visulima/humanizer

Version:

Humanizer is a library for humanizing data in a human-readable form.

22 lines (17 loc) 773 B
'use strict'; 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) => `ano${counter === 1 ? "" : "s"}`, (counter) => counter === 1 ? "mês" : "meses", (counter) => `semana${counter === 1 ? "" : "s"}`, (counter) => `dia${counter === 1 ? "" : "s"}`, (counter) => `hora${counter === 1 ? "" : "s"}`, (counter) => `minuto${counter === 1 ? "" : "s"}`, (counter) => `segundo${counter === 1 ? "" : "s"}`, (counter) => `milissegundo${counter === 1 ? "" : "s"}`, "em %s", "há %s", "," ); exports.durationLanguage = durationLanguage;