Skip to content

Commit f355235

Browse files
authoredMay 13, 2020
fix: Add Kinyarwanda (rw) locale (#903)
1 parent 8035c8a commit f355235

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
 

‎src/locale/rw.js

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Kinyarwanda (Rwanda) [rw]
2+
import dayjs from 'dayjs'
3+
4+
const locale = {
5+
name: 'rw',
6+
weekdays: 'Ku Cyumweru_Kuwa Mbere_Kuwa Kabiri_Kuwa Gatatu_Kuwa Kane_Kuwa Gatanu_Kuwa Gatandatu'.split('_'),
7+
months: 'Mutarama_Gashyantare_Werurwe_Mata_Gicurasi_Kamena_Nyakanga_Kanama_Nzeri_Ukwakira_Ugushyingo_Ukuboza'.split('_'),
8+
relativeTime: {
9+
future: 'mu %s',
10+
past: '%s',
11+
s: 'amasegonda',
12+
m: 'Umunota',
13+
mm: '%d iminota',
14+
h: 'isaha',
15+
hh: '%d amasaha',
16+
d: 'Umunsi',
17+
dd: '%d iminsi',
18+
M: 'ukwezi',
19+
MM: '%d amezi',
20+
y: 'umwaka',
21+
yy: '%d imyaka'
22+
},
23+
formats: {
24+
LT: 'HH:mm',
25+
LTS: 'HH:mm:ss',
26+
L: 'DD/MM/YYYY',
27+
LL: 'D MMMM YYYY',
28+
LLL: 'D MMMM YYYY HH:mm',
29+
LLLL: 'dddd, D MMMM YYYY HH:mm'
30+
},
31+
ordinal: n => n
32+
}
33+
34+
dayjs.locale(locale, null, true)
35+
36+
export default locale

0 commit comments

Comments
 (0)
Please sign in to comment.