Currently, it's possible to change the threshold configuration at library-wide level [1]. It should also be possible to change that at an instance level by allowing an options.threshold [2].
1:
const relativeTime = new RelativeTime();
relativeTime.format(aTwoYearsAgoDate));
// > '2 years ago'
RelativeTime.threshold.month = Infinity;
relativeTime.format(aTwoYearsAgoDate);
// > '24 months ago'
2:
const relativeTime1 = new RelativeTime();
relativeTime1.format(aTwoYearsAgoDate));
// > '2 years ago'
const relativeTime2 = new RelativeTime({threshold: {month: Infinity}});
relativeTime2.format(aTwoYearsAgoDate);
// > '24 months ago'
Currently, it's possible to change the threshold configuration at library-wide level [1]. It should also be possible to change that at an instance level by allowing an
options.threshold[2].1:
2: