@visulima/humanizer
Version:
Humanizer is a library for humanizing data in a human-readable form.
2 lines (1 loc) • 563 B
JavaScript
import n from"./util/create-duration-language.js";const m={d:"d",dag:"d",dagen:"d",j:"y",jaar:"y",jaren:"y",maand:"mo",maanden:"mo",milliseconde:"ms",milliseconden:"ms",min:"m",minuten:"m",minuut:"m",mnd:"mo",ms:"ms",s:"s",sec:"s",seconde:"s",seconden:"s",u:"h",uren:"h",uur:"h",w:"w",week:"w",weken:"w"},s=n("jaar",e=>e===1?"maand":"maanden",e=>e===1?"week":"weken",e=>e===1?"dag":"dagen","uur",e=>e===1?"minuut":"minuten",e=>e===1?"seconde":"seconden",e=>e===1?"milliseconde":"milliseconden","over %s","%s geleden",",",m,".","_");export{s as durationLanguage};