@freshworks/crayons
Version:
Crayons Web Components library
1 lines • 1.25 kB
JavaScript
System.register([],(function(e){"use strict";return{execute:function(){var o={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var t=e("f",(function e(t,n,s){var r;var u=o[t];if(typeof u==="string"){r=u}else if(n===1){r=u.one}else{r=u.other.replace("{{count}}",n.toString())}if(s!==null&&s!==void 0&&s.addSuffix){if(s.comparison&&s.comparison>0){return"in "+r}else{return r+" ago"}}return r}))}}}));