intl-relative-time-format
Version:
A fully spec-compliant polyfill for 'Intl.RelativeTimeFormat'
95 lines (94 loc) • 2.93 kB
JavaScript
if ("__addLocaleData" in Intl.RelativeTimeFormat) {
Intl.RelativeTimeFormat.__addLocaleData({
locale: "dz-BT",
data: {
year: {
'0': 'this year',
'1': 'next year',
'-1': 'last year',
future: {
other: 'ལོ་འཁོར་ {0} ནང་'
},
past: {
other: 'ལོ་འཁོར་ {0} ཧེ་མ་'
}
},
month: {
'0': 'this month',
'1': 'next month',
'-1': 'last month',
future: {
other: 'ཟླཝ་ {0} ནང་'
},
past: {
other: 'ཟླཝ་ {0} ཧེ་མ་'
}
},
week: {
'0': 'this week',
'1': 'next week',
'-1': 'last week',
future: {
other: 'བངུན་ཕྲག་ {0} ནང་'
},
past: {
other: 'བངུན་ཕྲག་ {0} ཧེ་མ་'
}
},
day: {
'0': 'ད་རིས་',
'1': 'ནངས་པ་',
'2': 'གནངས་ཚེ',
'-2': 'ཁ་ཉིམ',
'-1': 'ཁ་ཙ་',
future: {
other: 'ཉིནམ་ {0} ནང་'
},
past: {
other: 'ཉིནམ་ {0} ཧེ་མ་'
}
},
hour: {
'0': 'this hour',
future: {
other: 'ཆུ་ཚོད་ {0} ནང་'
},
past: {
other: 'ཆུ་ཚོད་ {0} ཧེ་མ་'
}
},
minute: {
'0': 'this minute',
future: {
other: 'སྐར་མ་ {0} ནང་'
},
past: {
other: 'སྐར་མ་ {0} ཧེ་མ་'
}
},
second: {
'0': 'now',
future: {
other: 'སྐར་ཆ་ {0} ནང་'
},
past: {
other: 'སྐར་ཆ་ {0} ཧེ་མ་'
}
},
quarter: {
'0': 'this quarter',
'1': 'next quarter',
'-1': 'last quarter',
future: {
other: '+{0} Q'
},
past: {
other: '-{0} Q'
}
},
nu: [
'tibt'
]
}
});
}