summaryrefslogtreecommitdiff
path: root/date-fns/src/locale/ar/_lib/formatRelative/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'date-fns/src/locale/ar/_lib/formatRelative/index.js')
-rw-r--r--date-fns/src/locale/ar/_lib/formatRelative/index.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/date-fns/src/locale/ar/_lib/formatRelative/index.js b/date-fns/src/locale/ar/_lib/formatRelative/index.js
new file mode 100644
index 0000000..52ebbf1
--- /dev/null
+++ b/date-fns/src/locale/ar/_lib/formatRelative/index.js
@@ -0,0 +1,12 @@
+var formatRelativeLocale = {
+ lastWeek: '[last] dddd [at] LT',
+ yesterday: '[yesterday at] LT',
+ today: '[today at] LT',
+ tomorrow: '[tomorrow at] LT',
+ nextWeek: 'dddd [at] LT',
+ other: 'L'
+}
+
+export default function formatRelative(token, _date, _baseDate, _options) {
+ return formatRelativeLocale[token]
+}