diff options
| author | fariborzemami <[email protected]> | 2020-01-31 22:15:26 +0330 |
|---|---|---|
| committer | fariborzemami <[email protected]> | 2020-01-31 22:15:26 +0330 |
| commit | f426628de3ce93bda7b27a367ba5a91e6d0daa0c (patch) | |
| tree | eee0b6273b58b7651ce30b6ad5d94255cfe47a9f /lib | |
| parent | 1a0511785d6702374f975d56977aa650a5d217d6 (diff) | |
| download | faker-f426628de3ce93bda7b27a367ba5a91e6d0daa0c.tar.xz faker-f426628de3ce93bda7b27a367ba5a91e6d0daa0c.zip | |
feat: add persian date
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/locales/fa/date/index.js | 4 | ||||
| -rw-r--r-- | lib/locales/fa/date/month.js | 31 | ||||
| -rw-r--r-- | lib/locales/fa/date/weekday.js | 21 |
3 files changed, 56 insertions, 0 deletions
diff --git a/lib/locales/fa/date/index.js b/lib/locales/fa/date/index.js new file mode 100644 index 00000000..8c45d3f6 --- /dev/null +++ b/lib/locales/fa/date/index.js @@ -0,0 +1,4 @@ +var date = {}; +module["exports"] = date; +date.month = require("./month"); +date.weekday = require("./weekday"); diff --git a/lib/locales/fa/date/month.js b/lib/locales/fa/date/month.js new file mode 100644 index 00000000..c3e42489 --- /dev/null +++ b/lib/locales/fa/date/month.js @@ -0,0 +1,31 @@ +// Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1799 +module["exports"] = { + wide: [ + "فروردین", + "اردیبهشت", + "خرداد", + "تیر", + "مرداد", + "شهریور", + "مهر", + "آبان", + "آذر", + "دی", + "بهمن", + "اسفند" + ], + abbr: [ + "فروردین", + "اردیبهشت", + "خرداد", + "تیر", + "مرداد", + "شهریور", + "مهر", + "آبان", + "آذر", + "دی", + "بهمن", + "اسفند" + ], +}; diff --git a/lib/locales/fa/date/weekday.js b/lib/locales/fa/date/weekday.js new file mode 100644 index 00000000..1f08b7c0 --- /dev/null +++ b/lib/locales/fa/date/weekday.js @@ -0,0 +1,21 @@ +// Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1847 +module["exports"] = { + wide: [ + "شنبه", + "یکشنبه", + "دوشنبه", + "سه شنبه", + "چهارشنبه", + "پتچشنبه", + "جمعه" + ], + abbr: [ + "شنبه", + "یکشنبه", + "دوشنبه", + "سه شنبه", + "چهارشنبه", + "پتچشنبه", + "جمعه" + ] +}; |
