relative-time-format
Version:
A convenient Intl.RelativeTimeFormat polyfill
54 lines • 975 B
JavaScript
export default {
"locale": "en",
"style": "narrow",
"year": {
"previous": "last yr.",
"current": "this yr.",
"next": "next yr.",
"past": "{0}y ago",
"future": "in {0}y"
},
"quarter": {
"previous": "last qtr.",
"current": "this qtr.",
"next": "next qtr.",
"past": "{0}q ago",
"future": "in {0}q"
},
"month": {
"previous": "last mo.",
"current": "this mo.",
"next": "next mo.",
"past": "{0}mo ago",
"future": "in {0}mo"
},
"week": {
"previous": "last wk.",
"current": "this wk.",
"next": "next wk.",
"past": "{0}w ago",
"future": "in {0}w"
},
"day": {
"previous": "yesterday",
"current": "today",
"next": "tomorrow",
"past": "{0}d ago",
"future": "in {0}d"
},
"hour": {
"current": "this hour",
"past": "{0}h ago",
"future": "in {0}h"
},
"minute": {
"current": "this minute",
"past": "{0}m ago",
"future": "in {0}m"
},
"second": {
"current": "now",
"past": "{0}s ago",
"future": "in {0}s"
}
}