intl-relative-time-format
Version:
A fully spec-compliant polyfill for 'Intl.RelativeTimeFormat'
311 lines (310 loc) • 9.36 kB
JavaScript
if ("__addLocaleData" in Intl.RelativeTimeFormat) {
Intl.RelativeTimeFormat.__addLocaleData({
locale: "ast",
data: {
year: {
'0': 'esti añu',
'1': 'l’añu viniente',
'-1': 'l’añu pasáu',
future: {
one: 'en {0} añu',
other: 'en {0} años'
},
past: {
one: 'hai {0} añu',
other: 'hai {0} años'
}
},
'year-short': {
'0': 'esti añu',
'1': 'l’añu vin.',
'-1': 'l’añu pas.',
future: {
one: 'en {0} añu',
other: 'en {0} años'
},
past: {
one: 'hai {0} añu',
other: 'hai {0} años'
}
},
'year-narrow': {
'0': 'esti añu',
'1': 'añu vin.',
'-1': 'añu pas.',
future: {
one: 'en {0} a.',
other: 'en {0} a.'
},
past: {
one: 'hai {0} a.',
other: 'hai {0} a.'
}
},
quarter: {
'0': 'esti trimestre',
'1': 'trimestre viniente',
'-1': 'trimestre anterior',
future: {
one: 'en {0} trimestre',
other: 'en {0} trimestres'
},
past: {
one: 'hai {0} trimestre',
other: 'hai {0} trimestres'
}
},
'quarter-short': {
'0': 'esti trim.',
'1': 'trim. vin.',
'-1': 'trim. ant.',
future: {
one: 'en {0} trim.',
other: 'en {0} trim.'
},
past: {
one: 'hai {0} trim.',
other: 'hai {0} trim.'
}
},
'quarter-narrow': {
'0': 'esti trim.',
'1': 'trim. vin.',
'-1': 'trim. ant.',
future: {
one: 'en {0} tr.',
other: 'en {0} tr.'
},
past: {
one: 'hai {0} tr.',
other: 'hai {0} tr.'
}
},
month: {
'0': 'esti mes',
'1': 'el mes viniente',
'-1': 'el mes pasáu',
future: {
one: 'en {0} mes',
other: 'en {0} meses'
},
past: {
one: 'hai {0} mes',
other: 'hai {0} meses'
}
},
'month-short': {
'0': 'esti mes',
'1': 'mes vin.',
'-1': 'mes pas.',
future: {
one: 'en {0} mes',
other: 'en {0} meses'
},
past: {
one: 'hai {0} mes',
other: 'hai {0} meses'
}
},
'month-narrow': {
'0': 'esti mes',
'1': 'mes vin.',
'-1': 'mes pas.',
future: {
one: 'en {0} m.',
other: 'en {0} m.'
},
past: {
one: 'hai {0} m.',
other: 'hai {0} m.'
}
},
week: {
'0': 'esta selmana',
'1': 'la selmana viniente',
'-1': 'la selmana pasada',
future: {
one: 'en {0} selmana',
other: 'en {0} selmanes'
},
past: {
one: 'hai {0} selmana',
other: 'hai {0} selmanes'
}
},
'week-short': {
'0': 'esta selm.',
'1': 'selm. viniente',
'-1': 'selm. pasada',
future: {
one: 'en {0} selm.',
other: 'en {0} selm.'
},
past: {
one: 'hai {0} selm.',
other: 'hai {0} selm.'
}
},
'week-narrow': {
'0': 'esta selm.',
'1': 'selm. vin.',
'-1': 'selm. pas.',
future: {
one: 'en {0} se.',
other: 'en {0} se.'
},
past: {
one: 'hai {0} se.',
other: 'hai {0} se.'
}
},
day: {
'0': 'güei',
'1': 'mañana',
'2': 'pasao mañana',
'-2': 'antayeri',
'-1': 'ayeri',
future: {
one: 'en {0} día',
other: 'en {0} díes'
},
past: {
one: 'hai {0} día',
other: 'hai {0} díes'
}
},
'day-short': {
'0': 'güei',
'1': 'mañana',
'2': 'pasao mañana',
'-2': 'antayeri',
'-1': 'ayeri',
future: {
one: 'en {0} día',
other: 'en {0} díes'
},
past: {
one: 'hai {0} día',
other: 'hai {0} díes'
}
},
'day-narrow': {
'0': 'güei',
'1': 'mañ.',
'2': 'p. mañ.',
'-2': 'antay.',
'-1': 'ayeri',
future: {
one: 'en {0} d.',
other: 'en {0} d.'
},
past: {
one: 'hai {0} d.',
other: 'hai {0} d.'
}
},
hour: {
'0': 'esta hora',
future: {
one: 'en {0} hora',
other: 'en {0} hores'
},
past: {
one: 'hai {0} hora',
other: 'hai {0} hores'
}
},
'hour-short': {
'0': 'esta hora',
future: {
one: 'en {0} h.',
other: 'en {0} h.'
},
past: {
one: 'hai {0} h.',
other: 'hai {0} h.'
}
},
'hour-narrow': {
'0': 'esta h.',
future: {
one: 'en {0} h.',
other: 'en {0} h.'
},
past: {
one: 'hai {0} h.',
other: 'hai {0} h.'
}
},
minute: {
'0': 'esti minutu',
future: {
one: 'en {0} minutu',
other: 'en {0} minutos'
},
past: {
one: 'hai {0} minutu',
other: 'hai {0} minutos'
}
},
'minute-short': {
'0': 'esti min.',
future: {
one: 'en {0} min.',
other: 'en {0} min.'
},
past: {
one: 'hai {0} min.',
other: 'hai {0} min.'
}
},
'minute-narrow': {
'0': 'esti min.',
future: {
one: 'en {0} min.',
other: 'en {0} min.'
},
past: {
one: 'hai {0} min.',
other: 'hai {0} min.'
}
},
second: {
'0': 'agora',
future: {
one: 'en {0} segundu',
other: 'en {0} segundos'
},
past: {
one: 'hai {0} segundu',
other: 'hai {0} segundos'
}
},
'second-short': {
'0': 'agora',
future: {
one: 'en {0} seg.',
other: 'en {0} seg.'
},
past: {
one: 'hai {0} seg.',
other: 'hai {0} seg.'
}
},
'second-narrow': {
'0': 'agora',
future: {
one: 'en {0} s.',
other: 'en {0} s.'
},
past: {
one: 'hai {0} s.',
other: 'hai {0} s.'
}
},
nu: [
'latn'
]
}
});
}