39 lines
1.2 KiB
JavaScript
39 lines
1.2 KiB
JavaScript
// Persian [fa]
|
||
import dayjs from '../index';
|
||
var locale = {
|
||
name: 'fa',
|
||
weekdays: 'یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه'.split('_'),
|
||
weekdaysShort: 'یک_دو_سه_چه_پن_جم_شن'.split('_'),
|
||
weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
|
||
weekStart: 6,
|
||
months: 'فروردین_اردیبهشت_خرداد_تیر_مرداد_شهریور_مهر_آبان_آذر_دی_بهمن_اسفند'.split('_'),
|
||
monthsShort: 'فرو_ارد_خرد_تیر_مرد_شهر_مهر_آبا_آذر_دی_بهم_اسف'.split('_'),
|
||
ordinal: function ordinal(n) {
|
||
return n;
|
||
},
|
||
formats: {
|
||
LT: 'HH:mm',
|
||
LTS: 'HH:mm:ss',
|
||
L: 'DD/MM/YYYY',
|
||
LL: 'D MMMM YYYY',
|
||
LLL: 'D MMMM YYYY HH:mm',
|
||
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||
},
|
||
relativeTime: {
|
||
future: 'در %s',
|
||
past: '%s قبل',
|
||
s: 'چند ثانیه',
|
||
m: 'یک دقیقه',
|
||
mm: '%d دقیقه',
|
||
h: 'یک ساعت',
|
||
hh: '%d ساعت',
|
||
d: 'یک روز',
|
||
dd: '%d روز',
|
||
M: 'یک ماه',
|
||
MM: '%d ماه',
|
||
y: 'یک سال',
|
||
yy: '%d سال'
|
||
}
|
||
};
|
||
dayjs.locale(locale, null, true);
|
||
export default locale; |