intl-relative-time-format
Version:
A fully spec-compliant polyfill for 'Intl.RelativeTimeFormat'
107 lines (106 loc) • 3.59 kB
JavaScript
if ("__addLocaleData" in Intl.RelativeTimeFormat) {
Intl.RelativeTimeFormat.__addLocaleData({
locale: "ug-CN",
data: {
year: {
'0': 'بۇ يىل',
'1': 'كېلەر يىل',
'-1': 'ئۆتكەن يىل',
future: {
one: '{0} يىلدىن كېيىن',
other: '{0} يىلدىن كېيىن'
},
past: {
one: '{0} يىل ئىلگىرى',
other: '{0} يىل ئىلگىرى'
}
},
month: {
'0': 'بۇ ئاي',
'1': 'كېلەر ئاي',
'-1': 'ئۆتكەن ئاي',
future: {
one: '{0} ئايدىن كېيىن',
other: '{0} ئايدىن كېيىن'
},
past: {
one: '{0} ئاي ئىلگىرى',
other: '{0} ئاي ئىلگىرى'
}
},
week: {
'0': 'بۇ ھەپتە',
'1': 'كېلەر ھەپتە',
'-1': 'ئۆتكەن ھەپتە',
future: {
one: '{0} ھەپتىدىن كېيىن',
other: '{0} ھەپتىدىن كېيىن'
},
past: {
one: '{0} ھەپتە ئىلگىرى',
other: '{0} ھەپتە ئىلگىرى'
}
},
day: {
'0': 'بۈگۈن',
'1': 'ئەتە',
'-1': 'تۈنۈگۈن',
future: {
one: '{0} كۈندىن كېيىن',
other: '{0} كۈندىن كېيىن'
},
past: {
one: '{0} كۈن ئىلگىرى',
other: '{0} كۈن ئىلگىرى'
}
},
hour: {
'0': 'this hour',
future: {
one: '{0} سائەتتىن كېيىن',
other: '{0} سائەتتىن كېيىن'
},
past: {
one: '{0} سائەت ئىلگىرى',
other: '{0} سائەت ئىلگىرى'
}
},
minute: {
'0': 'this minute',
future: {
one: '{0} مىنۇتتىن كېيىن',
other: '{0} مىنۇتتىن كېيىن'
},
past: {
one: '{0} مىنۇت ئىلگىرى',
other: '{0} مىنۇت ئىلگىرى'
}
},
second: {
'0': 'now',
future: {
one: '{0} سېكۇنتتىن كېيىن',
other: '{0} سېكۇنتتىن كېيىن'
},
past: {
one: '{0} سېكۇنت ئىلگىرى',
other: '{0} سېكۇنت ئىلگىرى'
}
},
quarter: {
'0': 'this quarter',
'1': 'next quarter',
'-1': 'last quarter',
future: {
other: '+{0} Q'
},
past: {
other: '-{0} Q'
}
},
nu: [
'latn'
]
}
});
}