relative-time-format
Version:
A convenient Intl.RelativeTimeFormat polyfill
102 lines • 1.8 kB
JavaScript
export default {
"locale": "en-SX",
"style": "long",
"year": {
"previous": "last year",
"current": "this year",
"next": "next year",
"past": {
"one": "{0} year ago",
"other": "{0} years ago"
},
"future": {
"one": "in {0} year",
"other": "in {0} years"
}
},
"quarter": {
"previous": "last quarter",
"current": "this quarter",
"next": "next quarter",
"past": {
"one": "{0} quarter ago",
"other": "{0} quarters ago"
},
"future": {
"one": "in {0} quarter",
"other": "in {0} quarters"
}
},
"month": {
"previous": "last month",
"current": "this month",
"next": "next month",
"past": {
"one": "{0} month ago",
"other": "{0} months ago"
},
"future": {
"one": "in {0} month",
"other": "in {0} months"
}
},
"week": {
"previous": "last week",
"current": "this week",
"next": "next week",
"past": {
"one": "{0} week ago",
"other": "{0} weeks ago"
},
"future": {
"one": "in {0} week",
"other": "in {0} weeks"
}
},
"day": {
"previous": "yesterday",
"current": "today",
"next": "tomorrow",
"past": {
"one": "{0} day ago",
"other": "{0} days ago"
},
"future": {
"one": "in {0} day",
"other": "in {0} days"
}
},
"hour": {
"current": "this hour",
"past": {
"one": "{0} hour ago",
"other": "{0} hours ago"
},
"future": {
"one": "in {0} hour",
"other": "in {0} hours"
}
},
"minute": {
"current": "this minute",
"past": {
"one": "{0} minute ago",
"other": "{0} minutes ago"
},
"future": {
"one": "in {0} minute",
"other": "in {0} minutes"
}
},
"second": {
"current": "now",
"past": {
"one": "{0} second ago",
"other": "{0} seconds ago"
},
"future": {
"one": "in {0} second",
"other": "in {0} seconds"
}
}
}