UNPKG

@visulima/humanizer

Version:

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

2 lines (1 loc) 576 B
import e from"./util/create-duration-language.js";const r={å:"y"r:"y",d:"d",dag:"d",dagar:"d",mån:"mo",månad:"mo",månader:"mo",millisekund:"ms",millisekunder:"ms",min:"m",minut:"m",minuter:"m",ms:"ms",s:"s",sek:"s",sekund:"s",sekunder:"s",t:"h",timmar:"h",timme:"h",v:"w",vecka:"w",veckor:"w"},n=e("år",m=>`månad${m===1?"":"er"}`,m=>`veck${m===1?"a":"or"}`,m=>`dag${m===1?"":"ar"}`,m=>`timm${m===1?"e":"ar"}`,m=>`minut${m===1?"":"er"}`,m=>`sekund${m===1?"":"er"}`,m=>`millisekund${m===1?"":"er"}`,"om %s","för %s sedan",",",r," ","_");export{n as durationLanguage};