locale of publish date fix

This commit is contained in:
Brahim Hadriche committed 2024-03-20 13:19:36 -04:00
1 parent feb968a72e
commit 66df27cf0b
4 files changed
+15 -2

No files matched your search

@@ -324,8 +324,12 @@ namespace InvidiousContent
else
return Tr(Locale.RowCell.NWeeksAgo).Replace("^n", weeks.toStr())
end if
else if total_days > 1
return Tr(Locale.RowCell.NDaysAgo).Replace("^n", total_days.toStr())
else if total_days > 0
if total_days = 1
return Tr(Locale.RowCell.OneDayAgo)
else
return Tr(Locale.RowCell.NDaysAgo).Replace("^n", total_days.toStr())
end if
else if span > 3600
hours = span \ 3600
if hours = 1