Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #303 from selrond/feature/add-sk-locale
Add sk locale
- Loading branch information
Showing
1 changed file
with
27 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,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 |