-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(): Add missing czech language locale (#461)
* Add Czech support
- 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: '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 |