mirror of
https://kevinblog.sytes.net/Code/Jibo-Revival-Group/JiboViteDocs.git
synced 2026-06-17 02:56:34 +00:00
Initalize
This commit is contained in:
10
node_modules/timeago.js/esm/lang/en_US.js
generated
vendored
Normal file
10
node_modules/timeago.js/esm/lang/en_US.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
var EN_US = ['second', 'minute', 'hour', 'day', 'week', 'month', 'year'];
|
||||
export default function (diff, idx) {
|
||||
if (idx === 0)
|
||||
return ['just now', 'right now'];
|
||||
var unit = EN_US[Math.floor(idx / 2)];
|
||||
if (diff > 1)
|
||||
unit += 's';
|
||||
return [diff + " " + unit + " ago", "in " + diff + " " + unit];
|
||||
}
|
||||
//# sourceMappingURL=en_US.js.map
|
||||
Reference in New Issue
Block a user