-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from irmmr/patch-1
Update config.js
- Loading branch information
Showing
1 changed file
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,36 @@ | ||
// source: https://unpkg.com/dayjs@v1.10.4/locale/xx.js | ||
// see: https://github.com/iamkun/dayjs/blob/v1.10.4/src/locale/xx.js | ||
// source: https://unpkg.com/dayjs@v1.10.4/locale/fa.js | ||
// see: https://github.com/iamkun/dayjs/blob/v1.10.4/src/locale/fa.js | ||
|
||
// TODO: copy compiled translations from https://unpkg.com/dayjs@v1.10.4/locale/xx.js | ||
|
||
dayjs.locale('xx'); | ||
dayjs.locale({ | ||
name: 'fa', | ||
weekdays: 'یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه'.split('_'), | ||
weekdaysShort: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), | ||
weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'), | ||
weekStart: 6, | ||
months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), | ||
monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), | ||
ordinal: n => 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 سال' | ||
} | ||
}, null, true); |