intl-relative-time-format
Version:
A fully spec-compliant polyfill for 'Intl.RelativeTimeFormat'
305 lines (304 loc) • 9.24 kB
JavaScript
if ("__addLocaleData" in Intl.RelativeTimeFormat) {
Intl.RelativeTimeFormat.__addLocaleData({
locale: "it-VA",
data: {
year: {
'0': 'quest’anno',
'1': 'anno prossimo',
'-1': 'anno scorso',
future: {
one: 'tra {0} anno',
other: 'tra {0} anni'
},
past: {
one: '{0} anno fa',
other: '{0} anni fa'
}
},
'year-short': {
'0': 'quest’anno',
'1': 'anno prossimo',
'-1': 'anno scorso',
future: {
one: 'tra {0} anno',
other: 'tra {0} anni'
},
past: {
one: '{0} anno fa',
other: '{0} anni fa'
}
},
'year-narrow': {
'0': 'quest’anno',
'1': 'anno prossimo',
'-1': 'anno scorso',
future: {
one: 'tra {0} anno',
other: 'tra {0} anni'
},
past: {
one: '{0} anno fa',
other: '{0} anni fa'
}
},
quarter: {
'0': 'questo trimestre',
'1': 'trimestre prossimo',
'-1': 'trimestre scorso',
future: {
one: 'tra {0} trimestre',
other: 'tra {0} trimestri'
},
past: {
one: '{0} trimestre fa',
other: '{0} trimestri fa'
}
},
'quarter-short': {
'0': 'questo trim.',
'1': 'trim. prossimo',
'-1': 'trim. scorso',
future: {
one: 'tra {0} trim.',
other: 'tra {0} trim.'
},
past: {
one: '{0} trim. fa',
other: '{0} trim. fa'
}
},
'quarter-narrow': {
'0': 'questo trim.',
'1': 'trim. prossimo',
'-1': 'trim. scorso',
future: {
one: 'tra {0} trim.',
other: 'tra {0} trim.'
},
past: {
one: '{0} trim. fa',
other: '{0} trim. fa'
}
},
month: {
'0': 'questo mese',
'1': 'mese prossimo',
'-1': 'mese scorso',
future: {
one: 'tra {0} mese',
other: 'tra {0} mesi'
},
past: {
one: '{0} mese fa',
other: '{0} mesi fa'
}
},
'month-short': {
'0': 'questo mese',
'1': 'mese prossimo',
'-1': 'mese scorso',
future: {
one: 'tra {0} mese',
other: 'tra {0} mesi'
},
past: {
one: '{0} mese fa',
other: '{0} mesi fa'
}
},
'month-narrow': {
'0': 'questo mese',
'1': 'mese prossimo',
'-1': 'mese scorso',
future: {
one: 'tra {0} mese',
other: 'tra {0} mesi'
},
past: {
one: '{0} mese fa',
other: '{0} mesi fa'
}
},
week: {
'0': 'questa settimana',
'1': 'settimana prossima',
'-1': 'settimana scorsa',
future: {
one: 'tra {0} settimana',
other: 'tra {0} settimane'
},
past: {
one: '{0} settimana fa',
other: '{0} settimane fa'
}
},
'week-short': {
'0': 'questa settimana',
'1': 'settimana prossima',
'-1': 'settimana scorsa',
future: {
one: 'tra {0} sett.',
other: 'tra {0} sett.'
},
past: {
one: '{0} sett. fa',
other: '{0} sett. fa'
}
},
'week-narrow': {
'0': 'questa settimana',
'1': 'settimana prossima',
'-1': 'settimana scorsa',
future: {
one: 'tra {0} sett.',
other: 'tra {0} sett.'
},
past: {
one: '{0} sett. fa',
other: '{0} sett. fa'
}
},
day: {
'0': 'oggi',
'1': 'domani',
'2': 'dopodomani',
'-2': 'l’altro ieri',
'-1': 'ieri',
future: {
one: 'tra {0} giorno',
other: 'tra {0} giorni'
},
past: {
one: '{0} giorno fa',
other: '{0} giorni fa'
}
},
'day-short': {
'0': 'oggi',
'1': 'domani',
'2': 'dopodomani',
'-2': 'l’altro ieri',
'-1': 'ieri',
future: {
one: 'tra {0} g',
other: 'tra {0} gg'
},
past: {
one: '{0} g fa',
other: '{0} gg fa'
}
},
'day-narrow': {
'0': 'oggi',
'1': 'domani',
'2': 'dopodomani',
'-2': 'l’altro ieri',
'-1': 'ieri',
future: {
one: 'tra {0} g',
other: 'tra {0} gg'
},
past: {
one: '{0} g fa',
other: '{0} gg fa'
}
},
hour: {
'0': 'quest’ora',
future: {
one: 'tra {0} ora',
other: 'tra {0} ore'
},
past: {
one: '{0} ora fa',
other: '{0} ore fa'
}
},
'hour-short': {
future: {
one: 'tra {0} h',
other: 'tra {0} h'
},
past: {
one: '{0} h fa',
other: '{0} h fa'
}
},
'hour-narrow': {
future: {
one: 'tra {0} h',
other: 'tra {0} h'
},
past: {
one: '{0} h fa',
other: '{0} h fa'
}
},
minute: {
'0': 'questo minuto',
future: {
one: 'tra {0} minuto',
other: 'tra {0} minuti'
},
past: {
one: '{0} minuto fa',
other: '{0} minuti fa'
}
},
'minute-short': {
future: {
one: 'tra {0} min',
other: 'tra {0} min'
},
past: {
one: '{0} min fa',
other: '{0} min fa'
}
},
'minute-narrow': {
future: {
one: 'tra {0} min',
other: 'tra {0} min'
},
past: {
one: '{0} min fa',
other: '{0} min fa'
}
},
second: {
'0': 'ora',
future: {
one: 'tra {0} secondo',
other: 'tra {0} secondi'
},
past: {
one: '{0} secondo fa',
other: '{0} secondi fa'
}
},
'second-short': {
future: {
one: 'tra {0} s',
other: 'tra {0} sec.'
},
past: {
one: '{0} s fa',
other: '{0} sec. fa'
}
},
'second-narrow': {
future: {
one: 'tra {0} s',
other: 'tra {0} s'
},
past: {
one: '{0} s fa',
other: '{0} s fa'
}
},
nu: [
'latn'
]
}
});
}