intl-relative-time-format
Version:
A fully spec-compliant polyfill for 'Intl.RelativeTimeFormat'
105 lines (104 loc) • 3.18 kB
JavaScript
if ("__addLocaleData" in Intl.RelativeTimeFormat) {
Intl.RelativeTimeFormat.__addLocaleData({
locale: "jgo",
data: {
year: {
'0': 'this year',
'1': 'next year',
'-1': 'last year',
future: {
one: 'Nǔu ŋguꞋ {0}',
other: 'Nǔu ŋguꞋ {0}'
},
past: {
one: 'Ɛ́gɛ́ mɔ́ ŋguꞋ {0}',
other: 'Ɛ́gɛ́ mɔ́ ŋguꞋ {0}'
}
},
quarter: {
'0': 'this quarter',
'1': 'next quarter',
'-1': 'last quarter',
future: {
other: '+{0} Q'
},
past: {
other: '-{0} Q'
}
},
month: {
'0': 'this month',
'1': 'next month',
'-1': 'last month',
future: {
one: 'Nǔu {0} saŋ',
other: 'Nǔu {0} saŋ'
},
past: {
one: 'ɛ́ gɛ́ mɔ́ pɛsaŋ {0}',
other: 'ɛ́ gɛ́ mɔ́ pɛsaŋ {0}'
}
},
week: {
'0': 'this week',
'1': 'next week',
'-1': 'last week',
future: {
one: 'Nǔu ŋgap-mbi {0}',
other: 'Nǔu ŋgap-mbi {0}'
},
past: {
one: 'Ɛ́ gɛ́ mɔ {0} ŋgap-mbi',
other: 'Ɛ́ gɛ́ mɔ {0} ŋgap-mbi'
}
},
day: {
'0': 'lɔꞋɔ',
'1': 'tomorrow',
'-1': 'yesterday',
future: {
one: 'Nǔu lɛ́Ꞌ {0}',
other: 'Nǔu lɛ́Ꞌ {0}'
},
past: {
one: 'Ɛ́ gɛ́ mɔ́ lɛ́Ꞌ {0}',
other: 'Ɛ́ gɛ́ mɔ́ lɛ́Ꞌ {0}'
}
},
hour: {
'0': 'this hour',
future: {
one: 'nǔu háwa {0}',
other: 'nǔu háwa {0}'
},
past: {
one: 'ɛ́ gɛ mɔ́ {0} háwa',
other: 'ɛ́ gɛ mɔ́ {0} háwa'
}
},
minute: {
'0': 'this minute',
future: {
one: 'nǔu {0} minút',
other: 'nǔu {0} minút'
},
past: {
one: 'ɛ́ gɛ́ mɔ́ minút {0}',
other: 'ɛ́ gɛ́ mɔ́ minút {0}'
}
},
second: {
'0': 'now',
future: {
other: '+{0} s'
},
past: {
other: '-{0} s'
}
},
nu: [
'latn'
]
}
});
}