@visulima/humanizer
Version:
Humanizer is a library for humanizing data in a human-readable form.
22 lines (17 loc) • 801 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) => counter === 1 ? "vuosi" : "vuotta",
(counter) => counter === 1 ? "kuukausi" : "kuukautta",
(counter) => `viikko${counter === 1 ? "" : "a"}`,
(counter) => `päivä${counter === 1 ? "" : "ä"}`,
(counter) => `tunti${counter === 1 ? "" : "a"}`,
(counter) => `minuutti${counter === 1 ? "" : "a"}`,
(counter) => `sekunti${counter === 1 ? "" : "a"}`,
(counter) => `millisekunti${counter === 1 ? "" : "a"}`,
"%s päästä",
"%s sitten",
","
);
exports.durationLanguage = durationLanguage;