intl-relative-time-format
Version:
A fully spec-compliant polyfill for 'Intl.RelativeTimeFormat'
251 lines (250 loc) • 7.33 kB
JavaScript
if ("__addLocaleData" in Intl.RelativeTimeFormat) {
Intl.RelativeTimeFormat.__addLocaleData({
locale: "vi",
data: {
year: {
'0': 'năm nay',
'1': 'năm sau',
'-1': 'năm ngoái',
future: {
other: 'sau {0} năm nữa'
},
past: {
other: '{0} năm trước'
}
},
'year-short': {
'0': 'năm nay',
'1': 'năm sau',
'-1': 'năm ngoái',
future: {
other: 'sau {0} năm nữa'
},
past: {
other: '{0} năm trước'
}
},
'year-narrow': {
'0': 'năm nay',
'1': 'năm sau',
'-1': 'năm ngoái',
future: {
other: 'sau {0} năm nữa'
},
past: {
other: '{0} năm trước'
}
},
quarter: {
'0': 'quý này',
'1': 'quý sau',
'-1': 'quý trước',
future: {
other: 'sau {0} quý nữa'
},
past: {
other: '{0} quý trước'
}
},
'quarter-short': {
'0': 'quý này',
'1': 'quý sau',
'-1': 'quý trước',
future: {
other: 'sau {0} quý nữa'
},
past: {
other: '{0} quý trước'
}
},
'quarter-narrow': {
'0': 'quý này',
'1': 'quý sau',
'-1': 'quý trước',
future: {
other: 'sau {0} quý nữa'
},
past: {
other: '{0} quý trước'
}
},
month: {
'0': 'tháng này',
'1': 'tháng sau',
'-1': 'tháng trước',
future: {
other: 'sau {0} tháng nữa'
},
past: {
other: '{0} tháng trước'
}
},
'month-short': {
'0': 'tháng này',
'1': 'tháng sau',
'-1': 'tháng trước',
future: {
other: 'sau {0} tháng nữa'
},
past: {
other: '{0} tháng trước'
}
},
'month-narrow': {
'0': 'tháng này',
'1': 'tháng sau',
'-1': 'tháng trước',
future: {
other: 'sau {0} tháng nữa'
},
past: {
other: '{0} tháng trước'
}
},
week: {
'0': 'tuần này',
'1': 'tuần sau',
'-1': 'tuần trước',
future: {
other: 'sau {0} tuần nữa'
},
past: {
other: '{0} tuần trước'
}
},
'week-short': {
'0': 'tuần này',
'1': 'tuần sau',
'-1': 'tuần trước',
future: {
other: 'sau {0} tuần nữa'
},
past: {
other: '{0} tuần trước'
}
},
'week-narrow': {
'0': 'tuần này',
'1': 'tuần sau',
'-1': 'tuần trước',
future: {
other: 'sau {0} tuần nữa'
},
past: {
other: '{0} tuần trước'
}
},
day: {
'0': 'Hôm nay',
'1': 'Ngày mai',
'2': 'Ngày kia',
'-2': 'Hôm kia',
'-1': 'Hôm qua',
future: {
other: 'sau {0} ngày nữa'
},
past: {
other: '{0} ngày trước'
}
},
'day-short': {
'2': 'Ngày kia',
'-2': 'Hôm kia',
future: {
other: 'sau {0} ngày nữa'
},
past: {
other: '{0} ngày trước'
}
},
'day-narrow': {
'2': 'Ngày kia',
'-2': 'Hôm kia',
future: {
other: 'sau {0} ngày nữa'
},
past: {
other: '{0} ngày trước'
}
},
hour: {
'0': 'giờ này',
future: {
other: 'sau {0} giờ nữa'
},
past: {
other: '{0} giờ trước'
}
},
'hour-short': {
future: {
other: 'sau {0} giờ nữa'
},
past: {
other: '{0} giờ trước'
}
},
'hour-narrow': {
future: {
other: 'sau {0} giờ nữa'
},
past: {
other: '{0} giờ trước'
}
},
minute: {
'0': 'phút này',
future: {
other: 'sau {0} phút nữa'
},
past: {
other: '{0} phút trước'
}
},
'minute-short': {
future: {
other: 'sau {0} phút nữa'
},
past: {
other: '{0} phút trước'
}
},
'minute-narrow': {
future: {
other: 'sau {0} phút nữa'
},
past: {
other: '{0} phút trước'
}
},
second: {
'0': 'bây giờ',
future: {
other: 'sau {0} giây nữa'
},
past: {
other: '{0} giây trước'
}
},
'second-short': {
future: {
other: 'sau {0} giây nữa'
},
past: {
other: '{0} giây trước'
}
},
'second-narrow': {
future: {
other: 'sau {0} giây nữa'
},
past: {
other: '{0} giây trước'
}
},
nu: [
'latn'
]
}
});
}