fix: fix timeago detail for months to be in weeks. (#235)

Co-authored-by: SaadYousaf <saadyousaf@A006-00314.local>
This commit is contained in:
Saad Yousaf
2022-08-05 22:04:09 +05:00
committed by GitHub
parent 7ea3e62d33
commit fd60e96e1d

View File

@@ -11,8 +11,8 @@ export default function timeLocale(number, index, totalSec) {
['%sd', 'in %s days'],
['1w', 'in 1 week'],
['%sw', 'in %s weeks'],
['1m', 'in 1 month'],
['%sm', 'in %s months'],
['4w', 'in 1 month'],
[`${number * 4}w`, 'in %s months'],
['1y', 'in 1 year'],
['%sy', 'in %s years'],
][index];