UNPKG

intl-relative-time-format

Version:

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

229 lines (228 loc) 6.16 kB
if ("__addLocaleData" in Intl.RelativeTimeFormat) { Intl.RelativeTimeFormat.__addLocaleData({ locale: "yue-Hans", data: { year: { '0': '今年', '1': '下年', '-1': '旧年', future: { other: '{0} 年后' }, past: { other: '{0} 年前' } }, 'year-short': { future: { other: '{0} 年后' }, past: { other: '{0} 年前' } }, 'year-narrow': { future: { other: '{0} 年后' }, past: { other: '{0} 年前' } }, quarter: { '0': '今季', '1': '下一季', '-1': '上一季', future: { other: '{0} 季后' }, past: { other: '{0} 季前' } }, 'quarter-short': { '0': '今季', '1': '下季', '-1': '上季', future: { other: '{0} 季后' }, past: { other: '{0} 季前' } }, 'quarter-narrow': { '0': '今季', '1': '下季', '-1': '上季', future: { other: '{0} 季后' }, past: { other: '{0} 季前' } }, month: { '0': '今个月', '1': '下个月', '-1': '上个月', future: { other: '{0} 个月后' }, past: { other: '{0} 个月前' } }, 'month-short': { future: { other: '{0} 个月后' }, past: { other: '{0} 个月前' } }, 'month-narrow': { future: { other: '{0} 个月后' }, past: { other: '{0} 个月前' } }, week: { '0': '今个星期', '1': '下星期', '-1': '上星期', future: { other: '{0} 个星期后' }, past: { other: '{0} 个星期前' } }, 'week-short': { future: { other: '{0} 个星期后' }, past: { other: '{0} 个星期前' } }, 'week-narrow': { future: { other: '{0} 个星期后' }, past: { other: '{0} 个星期前' } }, day: { '0': '今日', '1': '听日', '2': '后天', '-2': '前天', '-1': '寻日', future: { other: '{0} 日后' }, past: { other: '{0} 日前' } }, 'day-short': { future: { other: '{0} 日后' }, past: { other: '{0} 日前' } }, 'day-narrow': { future: { other: '{0} 日后' }, past: { other: '{0} 日前' } }, hour: { '0': '呢个小时', future: { other: '{0} 小时后' }, past: { other: '{0} 小时前' } }, 'hour-short': { future: { other: '{0} 小时后' }, past: { other: '{0} 小时前' } }, 'hour-narrow': { future: { other: '{0} 小时后' }, past: { other: '{0} 小时前' } }, minute: { '0': '呢分钟', future: { other: '{0} 分钟后' }, past: { other: '{0} 分钟前' } }, 'minute-short': { future: { other: '{0} 分钟后' }, past: { other: '{0} 分钟前' } }, 'minute-narrow': { future: { other: '{0} 分钟后' }, past: { other: '{0} 分钟前' } }, second: { '0': '宜家', future: { other: '{0} 秒后' }, past: { other: '{0} 秒前' } }, 'second-short': { future: { other: '{0} 秒后' }, past: { other: '{0} 秒前' } }, 'second-narrow': { future: { other: '{0} 秒后' }, past: { other: '{0} 秒前' } }, nu: [ 'latn' ] } }); }