Skip to content

Commit

Permalink
Add greek locale (iamkun#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
pegiadise authored and iamkun committed Nov 7, 2018
1 parent 8156a5c commit 2504003
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/locale/el.js
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

0 comments on commit 2504003

Please sign in to comment.