Skip to content

Commit

Permalink
Merge pull request #303 from selrond/feature/add-sk-locale
Browse files Browse the repository at this point in the history
Add sk locale
  • Loading branch information
iamkun committed Sep 25, 2018
2 parents 9cbcc51 + d45048d commit 9336f15
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/locale/sk.js
@@ -0,0 +1,27 @@
import dayjs from 'dayjs'

const locale = {
name: 'sk',
weekdays: 'Pondelok_Utorok_Streda_Štvrtok_Piatok_Sobota_Nedeľa'.split('_'),
months: 'Január_Február_Marec_Apríl_Máj_Jún_Júl_August_September_Október_November_December'.split('_'),
relativeTime: {
future: 'o %s',
past: 'pred %s',
s: 'niekoľko sekúnd',
m: 'minúta',
mm: '%d minút',
h: 'un\' hodina',
hh: '%d hodín',
d: 'deň',
dd: '%d dní',
M: 'mesiac',
MM: '%d mesiacov',
y: 'rok',
yy: '%d rokov'
},
ordinal: n => `${n}º`
}

dayjs.locale(locale, null, true)

export default locale

0 comments on commit 9336f15

Please sign in to comment.