Skip to content

Commit

Permalink
fix(): Add missing czech language locale (#461)
Browse files Browse the repository at this point in the history
* Add Czech support
  • Loading branch information
dfridrich authored and iamkun committed Jan 22, 2019
1 parent 97a6088 commit c4517a8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/locale/cs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import dayjs from 'dayjs'

const locale = {
name: 'cs',
weekdays: 'Neděle_Pondělí_Úterý_Středa_Čtvrtek_Pátek_Sobota'.split('_'),
months: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
relativeTime: {
future: 'za %s',
past: 'před %s',
s: 'několik sekund',
m: 'minuta',
mm: '%d minut',
h: 'hodina',
hh: '%d hodin',
d: 'den',
dd: '%d dnů',
M: 'měsíc',
MM: '%d měsíců',
y: 'rok',
yy: '%d roků'
},
ordinal: n => `${n}º`
}

dayjs.locale(locale, null, true)

export default locale

0 comments on commit c4517a8

Please sign in to comment.