@visulima/humanizer
Version:
Humanizer is a library for humanizing data in a human-readable form.
22 lines (17 loc) • 786 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) => `aasta${counter === 1 ? "" : "t"}`,
(counter) => `kuu${counter === 1 ? "" : "d"}`,
(counter) => `nädal${counter === 1 ? "" : "at"}`,
(counter) => `päev${counter === 1 ? "" : "a"}`,
(counter) => `tund${counter === 1 ? "" : "i"}`,
(counter) => `minut${counter === 1 ? "" : "it"}`,
(counter) => `sekund${counter === 1 ? "" : "it"}`,
(counter) => `millisekund${counter === 1 ? "" : "it"}`,
"%s pärast",
"%s tagasi",
","
);
exports.durationLanguage = durationLanguage;