fix: fix timeago detail for months to be in weeks. (#235)
Co-authored-by: SaadYousaf <saadyousaf@A006-00314.local>
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user