UNPKG

intl-relative-time-format

Version:

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

95 lines (94 loc) 2.49 kB
if ("__addLocaleData" in Intl.RelativeTimeFormat) { Intl.RelativeTimeFormat.__addLocaleData({ locale: "gsw-FR", data: { year: { '0': 'diese Jaar', '1': 'nächste Jaar', '-1': 'letzte Jaar', future: { other: '+{0} y' }, past: { other: '-{0} y' } }, month: { '0': 'diese Monet', '1': 'nächste Monet', '-1': 'letzte Monet', future: { other: '+{0} m' }, past: { other: '-{0} m' } }, week: { '0': 'diese Wuche', '1': 'nächste Wuche', '-1': 'letzte Wuche', future: { other: '+{0} w' }, past: { other: '-{0} w' } }, day: { '0': 'hüt', '1': 'moorn', '2': 'übermoorn', '-2': 'vorgeschter', '-1': 'geschter', future: { other: '+{0} d' }, past: { other: '-{0} d' } }, hour: { '0': 'this hour', future: { other: '+{0} h' }, past: { other: '-{0} h' } }, minute: { '0': 'this minute', future: { other: '+{0} min' }, past: { other: '-{0} min' } }, second: { '0': 'now', future: { other: '+{0} s' }, past: { other: '-{0} s' } }, quarter: { '0': 'this quarter', '1': 'next quarter', '-1': 'last quarter', future: { other: '+{0} Q' }, past: { other: '-{0} Q' } }, nu: [ 'latn' ] } }); }