@visulima/humanizer
Version:
Humanizer is a library for humanizing data in a human-readable form.
2 lines (1 loc) • 602 B
JavaScript
import s from"./util/create-duration-language.js";const a={a:"y",aasta:"y",aastat:"y",k:"mo",kuu:"mo",kuud:"mo",millisekund:"ms",millisekundit:"ms",min:"m",minut:"m",minutit:"m",ms:"ms",näd:"w",nädal:"w",nädalat:"w",p:"d",päev:"d",päeva:"d",s:"s",sek:"s",sekund:"s",sekundit:"s",t:"h",tund:"h",tundi:"h"},i=s(t=>`aasta${t===1?"":"t"}`,t=>`kuu${t===1?"":"d"}`,t=>`nädal${t===1?"":"at"}`,t=>`päev${t===1?"":"a"}`,t=>`tund${t===1?"":"i"}`,t=>`minut${t===1?"":"it"}`,t=>`sekund${t===1?"":"it"}`,t=>`millisekund${t===1?"":"it"}`,"%s pärast","%s tagasi",",",a," ","_");export{i as durationLanguage};