Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2018-02-25 07:49:06 +0300
committerRebecca Turner <me@re-becca.org>2018-03-23 12:08:56 +0300
commitca84be91c434fb7fa472ee4c0b7341414acf52b5 (patch)
treed7ace64d01200f600e2cb4abb87ab883affd68d5 /node_modules/tiny-relative-date/translations/en-short.js
parent8954f8e792200bc8da1a80d02876b4278d92b32f (diff)
tiny-relative-date@1.3.0
PR-URL: https://github.com/npm/npm/pull/19910 Credit: @zkat Reviewed-By: @iarna
Diffstat (limited to 'node_modules/tiny-relative-date/translations/en-short.js')
-rw-r--r--node_modules/tiny-relative-date/translations/en-short.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/node_modules/tiny-relative-date/translations/en-short.js b/node_modules/tiny-relative-date/translations/en-short.js
new file mode 100644
index 000000000..b368d1921
--- /dev/null
+++ b/node_modules/tiny-relative-date/translations/en-short.js
@@ -0,0 +1,31 @@
+module.exports = {
+ justNow: "now",
+ secondsAgo: "{{time}}s",
+ aMinuteAgo: "1m",
+ minutesAgo: "{{time}}m",
+ anHourAgo: "1h",
+ hoursAgo: "{{time}}h",
+ aDayAgo: "1d",
+ daysAgo: "{{time}}d",
+ aWeekAgo: "1w",
+ weeksAgo: "{{time}}w",
+ aMonthAgo: '4w',
+ monthsAgo: (months) => `${Math.round(months / 12 * 52)}w`,
+ aYearAgo: "1y",
+ yearsAgo: "{{time}}y",
+ overAYearAgo: "1y+",
+ secondsFromNow: "+{{time}}s",
+ aMinuteFromNow: "+1m",
+ minutesFromNow: "+{{time}}m",
+ anHourFromNow: "+1h",
+ hoursFromNow: "+{{time}}h",
+ aDayFromNow: "+1d",
+ daysFromNow: "+{{time}}d",
+ aWeekFromNow: "+1w",
+ weeksFromNow: "+{{time}}w",
+ aMonthFromNow: '+4w',
+ monthsFromNow: (months) => `+${Math.round(months / 12 * 52)}w`,
+ aYearFromNow: "+1y",
+ yearsFromNow: "+{{time}}y",
+ overAYearFromNow: "+1y+"
+}