intl-relative-time-format
Version:
A fully spec-compliant polyfill for 'Intl.RelativeTimeFormat'
121 lines (120 loc) • 3.44 kB
JavaScript
if ("__addLocaleData" in Intl.RelativeTimeFormat) {
Intl.RelativeTimeFormat.__addLocaleData({
locale: "ps-PK",
data: {
year: {
'0': 'سږکال',
'1': 'بل کال',
'-1': 'پروسږکال',
future: {
one: 'په {0} کال کے',
other: 'په {0} کالونو کے'
},
past: {
one: '{0} کال مخکے',
other: '{0} کاله مخکے'
}
},
'year-short': {
'0': 'سږکال',
'1': 'بل کال',
'-1': 'پروسږکال',
future: {
one: 'په {0} کال کے',
other: 'په {0} کالونو کے'
},
past: {
one: '{0} کال مخکے',
other: '{0} کاله مخکے'
}
},
'year-narrow': {
'0': 'سږکال',
'1': 'بل کال',
'-1': 'پروسږکال',
future: {
one: 'په {0} کال کے',
other: 'په {0} کالونو کے'
},
past: {
one: '{0} کال مخکے',
other: '{0} کاله مخکے'
}
},
month: {
'0': 'this month',
'1': 'next month',
'-1': 'last month',
future: {
other: '+{0} m'
},
past: {
other: '-{0} m'
}
},
week: {
'0': 'this week',
'1': 'next week',
'-1': 'last week',
future: {
other: '+{0} w'
},
past: {
other: '-{0} w'
}
},
day: {
'0': 'today',
'1': 'tomorrow',
'-1': 'yesterday',
future: {
other: '+{0} d'
},
past: {
other: '-{0} d'
}
},
hour: {
'0': 'this hour',
future: {
other: '+{0} h'
},
past: {
other: '-{0} h'
}
},
minute: {
'0': 'this minute',
future: {
other: '+{0} min'
},
past: {
other: '-{0} min'
}
},
second: {
'0': 'now',
future: {
other: '+{0} s'
},
past: {
other: '-{0} s'
}
},
quarter: {
'0': 'this quarter',
'1': 'next quarter',
'-1': 'last quarter',
future: {
other: '+{0} Q'
},
past: {
other: '-{0} Q'
}
},
nu: [
'arabext'
]
}
});
}