relative-time-format
Version:
A convenient Intl.RelativeTimeFormat polyfill
96 lines • 1.62 kB
JavaScript
export default {
"locale": "en-AU",
"style": "narrow",
"year": {
"previous": "last yr",
"current": "this yr",
"next": "next yr",
"past": {
"one": "{0} yr ago",
"other": "{0} yrs ago"
},
"future": {
"one": "in {0} yr",
"other": "in {0} yrs"
}
},
"quarter": {
"previous": "last qtr.",
"current": "this qtr.",
"next": "next qtr.",
"past": {
"one": "{0} qtr ago",
"other": "{0} qtrs ago"
},
"future": {
"one": "in {0} qtr",
"other": "in {0} qtrs"
}
},
"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": {
"one": "{0} wk ago",
"other": "{0} wks ago"
},
"future": {
"one": "in {0} wk",
"other": "in {0} wks"
}
},
"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} hr ago",
"other": "{0} hrs ago"
},
"future": {
"one": "in {0} hr",
"other": "in {0} hrs"
}
},
"minute": {
"current": "this minute",
"past": {
"one": "{0} min. ago",
"other": "{0} mins ago"
},
"future": {
"one": "in {0} min.",
"other": "in {0} mins"
}
},
"second": {
"current": "now",
"past": {
"one": "{0} sec. ago",
"other": "{0} secs ago"
},
"future": {
"one": "in {0} sec.",
"other": "in {0} secs"
}
}
}