intl-relative-time-format
Version:
A fully spec-compliant polyfill for 'Intl.RelativeTimeFormat'
221 lines (220 loc) • 6.3 kB
JavaScript
if ("__addLocaleData" in Intl.RelativeTimeFormat) {
Intl.RelativeTimeFormat.__addLocaleData({
locale: "mzn-IR",
data: {
year: {
'0': 'امسال',
'1': 'سال دیگه',
'-1': 'پارسال',
future: {
other: '{0} سال دله'
},
past: {
other: '{0} سال پیش'
}
},
'year-short': {
future: {
other: '{0} سال دله'
},
past: {
other: '{0} سال پیش'
}
},
'year-narrow': {
future: {
other: '{0} سال دله'
},
past: {
other: '{0} سال پیش'
}
},
quarter: {
'0': 'this quarter',
'1': 'next quarter',
'-1': 'last quarter',
future: {
other: '{0} ربع دله'
},
past: {
other: '{0} ربع پیش'
}
},
'quarter-short': {
future: {
other: '{0} ربع دله'
},
past: {
other: '{0} ربع پیش'
}
},
'quarter-narrow': {
future: {
other: '{0} ربع دله'
},
past: {
other: '{0} ربع پیش'
}
},
month: {
'0': 'این ماه',
'1': 'ماه ِبعد',
'-1': 'ماه قبل',
future: {
other: '{0} ماه دله'
},
past: {
other: '{0} ماه پیش'
}
},
'month-short': {
future: {
other: '{0} ماه دله'
},
past: {
other: '{0} ماه پیش'
}
},
'month-narrow': {
future: {
other: '{0} ماه دله'
},
past: {
other: '{0} ماه پیش'
}
},
week: {
'0': 'این هفته',
'1': 'بعدی هفته',
'-1': 'قبلی هفته',
future: {
other: '{0} هفته دله'
},
past: {
other: '{0} هفته پیش'
}
},
'week-short': {
future: {
other: '{0} هفته دله'
},
past: {
other: '{0} هفته پیش'
}
},
'week-narrow': {
future: {
other: '{0} هفته دله'
},
past: {
other: '{0} هفته پیش'
}
},
day: {
'0': 'اَمروز',
'1': 'فِردا',
'-1': 'دیروز',
future: {
other: '{0} روز دله'
},
past: {
other: '{0} روز پیش'
}
},
'day-short': {
future: {
other: '{0} روز دله'
},
past: {
other: '{0} روز پیش'
}
},
'day-narrow': {
future: {
other: '{0} روز دله'
},
past: {
other: '{0} روز پیش'
}
},
hour: {
'0': 'this hour',
future: {
other: '{0} ساعِت دله'
},
past: {
other: '{0} ساعِت پیش'
}
},
'hour-short': {
future: {
other: '{0} ساعت دله'
},
past: {
other: '{0} ساعت پیش'
}
},
'hour-narrow': {
future: {
other: '{0} ساعت دله'
},
past: {
other: '{0} ساعت پیش'
}
},
minute: {
'0': 'this minute',
future: {
other: '{0} دقیقه دله'
},
past: {
other: '{0} دَقه پیش'
}
},
'minute-short': {
future: {
other: '{0} دَقه دله'
},
past: {
other: '{0} دَقه پیش'
}
},
'minute-narrow': {
future: {
other: '{0} دَقه دله'
},
past: {
other: '{0} دَقه پیش'
}
},
second: {
'0': 'now',
future: {
other: '{0} ثانیه دله'
},
past: {
other: '{0} ثانیه پیش'
}
},
'second-short': {
future: {
other: '{0} ثانیه دله'
},
past: {
other: '{0} ثانیه پیش'
}
},
'second-narrow': {
future: {
other: '{0} ثانیه دله'
},
past: {
other: '{0} ثانیه پیش'
}
},
nu: [
'arabext'
]
}
});
}