forked from iamkun/dayjs
-
Notifications
You must be signed in to change notification settings - Fork 5
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
6 changed files
with
101 additions
and
15 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
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 |
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,29 @@ | ||
import dayjs from 'dayjs' | ||
|
||
const locale = { | ||
name: 'he', | ||
weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), | ||
weekdaysMin: 'א׳_ב׳_ג׳_ד׳_ה׳_ו_ש׳'.split('_'), | ||
months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'), | ||
monthsShort: 'ינו_פבר_מרץ_אפר_מאי_יונ_יול_אוג_ספט_אוק_נוב_דצמ'.split('_'), | ||
relativeTime: { | ||
future: 'בעוד %s', | ||
past: 'לפני %s', | ||
s: 'כמה שניות', | ||
m: 'דקה', | ||
mm: '%d דקות', | ||
h: 'שעה', | ||
hh: '%d שעות', | ||
d: 'יום', | ||
dd: '%d ימים', | ||
M: 'חודש', | ||
MM: '%d חודשים', | ||
y: 'שנה', | ||
yy: '%d שנים' | ||
}, | ||
ordinal: n => n | ||
} | ||
|
||
dayjs.locale(locale, null, true) | ||
|
||
export default locale |
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,27 @@ | ||
import dayjs from 'dayjs' | ||
|
||
const locale = { | ||
name: 'lt', | ||
weekdays: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'), | ||
months: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'), | ||
ordinal: n => `${n}.`, | ||
relativeTime: { | ||
future: 'už %s', | ||
past: 'prieš %s', | ||
s: 'kelias sekundes', | ||
m: 'minutę', | ||
mm: '%d minutes', | ||
h: 'valandą', | ||
hh: '%d valandas', | ||
d: 'dieną', | ||
dd: '%d dienas', | ||
M: 'menesį', | ||
MM: '%d mėnesius', | ||
y: 'metus', | ||
yy: '%d metus' | ||
} | ||
} | ||
|
||
dayjs.locale(locale, null, true) | ||
|
||
export default locale |
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
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