Skip to content

Commit

Permalink
add Farsi/Persian (fa) locale file (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samin Yousefnia authored and iamkun committed Nov 18, 2018
1 parent 2485cc1 commit 0956a3b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/locale/fa.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@

import dayjs from 'dayjs'

const locale = {
name: 'fa',
weekdays: 'یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه'.split('_'),
months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
ordinal: n => n
ordinal: n => n,
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)
Expand Down

0 comments on commit 0956a3b

Please sign in to comment.