UNPKG

@visulima/humanizer

Version:

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

17 lines (14 loc) 825 B
import createDurationLanguage from './util/create-duration-language.mjs'; const durationLanguage = createDurationLanguage( (counter) => counter === 1 ? "வருடம்" : "ஆண்டுகள்", (counter) => counter === 1 ? "மாதம்" : "மாதங்கள்", (counter) => counter === 1 ? "வாரம்" : "வாரங்கள்", (counter) => counter === 1 ? "நாள்" : "நாட்கள்", (counter) => counter === 1 ? "மணி" : "மணிநேரம்", (counter) => `நிமிட${counter === 1 ? "ம்" : "ங்கள்"}`, (counter) => `வினாடி${counter === 1 ? "" : "கள்"}`, (counter) => `மில்லி விநாடி${counter === 1 ? "" : "கள்"}`, "%s இல்", "%s முன்" ); export { durationLanguage };