forked from iamkun/dayjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import dayjs from 'dayjs' | ||
|
||
const locale = { | ||
name: 'el', | ||
weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'), | ||
months: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'), | ||
monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαι_Ιουν_Ιουλ_Αυγ_Σεπτ_Οκτ_Νοε_Δεκ'.split('_'), | ||
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) | ||
|
||
export default locale |