summaryrefslogtreecommitdiff
path: root/date-fns/src/locale/fa-IR/_lib/formatRelative/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'date-fns/src/locale/fa-IR/_lib/formatRelative/index.js')
-rw-r--r--date-fns/src/locale/fa-IR/_lib/formatRelative/index.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/date-fns/src/locale/fa-IR/_lib/formatRelative/index.js b/date-fns/src/locale/fa-IR/_lib/formatRelative/index.js
new file mode 100644
index 0000000..34244e1
--- /dev/null
+++ b/date-fns/src/locale/fa-IR/_lib/formatRelative/index.js
@@ -0,0 +1,12 @@
+var formatRelativeLocale = {
+ lastWeek: "eeee 'گذشته در' p",
+ yesterday: "'دیروز در' p",
+ today: "'امروز در' p",
+ tomorrow: "'فردا در' p",
+ nextWeek: "eeee 'در' p",
+ other: 'P'
+}
+
+export default function formatRelative(token, _date, _baseDate, _options) {
+ return formatRelativeLocale[token]
+}