UNPKG

intl-relative-time-format

Version:

A fully spec-compliant polyfill for 'Intl.RelativeTimeFormat'

104 lines (103 loc) 2.78 kB
if ("__addLocaleData" in Intl.RelativeTimeFormat) { Intl.RelativeTimeFormat.__addLocaleData({ locale: "mgo-CM", data: { year: { '0': 'this year', '1': 'next year', '-1': 'last year', future: { other: '+{0} y' }, past: { other: '-{0} y' } }, month: { '0': 'this month', '1': 'next month', '-1': 'last month', future: { one: '+{0} m', other: '+{0} m' }, past: { one: '-{0} m', other: '-{0} m' } }, week: { '0': 'this week', '1': 'next week', '-1': 'last week', future: { other: '+{0} w' }, past: { other: '-{0} w' } }, day: { '0': 'tèchɔ̀ŋ', '1': 'isu', '2': 'isu ywi', '-1': 'ikwiri', future: { one: '+{0} d', other: '+{0} d' }, past: { one: '-{0} d', other: '-{0} d' } }, hour: { '0': 'this hour', future: { one: '+{0} h', other: '+{0} h' }, past: { one: '-{0} h', other: '-{0} h' } }, minute: { '0': 'this minute', future: { one: '+{0} min', other: '+{0} min' }, past: { one: '-{0} min', other: '-{0} min' } }, second: { '0': 'now', future: { one: '+{0} s', other: '+{0} s' }, past: { one: '-{0} s', other: '-{0} s' } }, quarter: { '0': 'this quarter', '1': 'next quarter', '-1': 'last quarter', future: { other: '+{0} Q' }, past: { other: '-{0} Q' } }, nu: [ 'latn' ] } }); }