Skip to content

Commit b9cee84

Browse files
ObiWycliffeiamkun
authored andcommitted
fix: Add Swahili locale (#508)
1 parent 9815467 commit b9cee84

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

src/locale/sw.js

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import dayjs from 'dayjs'
2+
3+
const locale = {
4+
name: 'sw',
5+
weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijuma_Jumamosi'.split('_'),
6+
months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Octoba_Novemba_Disemba'.split('_'),
7+
weekStart: 1,
8+
ordinal: n => `${n}.`,
9+
formats: {
10+
LT: 'H:mm',
11+
LTS: 'H:mm:ss',
12+
L: 'DD.MM.YYYY',
13+
LL: 'D. MMMM YYYY',
14+
LLL: 'D. MMMM YYYY H:mm',
15+
LLLL: 'dddd D. MMMM YYYY H:mm'
16+
},
17+
relativeTime: {
18+
future: 'Ujao %s',
19+
past: 'Uliopita %s',
20+
s: 'sekunde',
21+
m: 'dakika',
22+
mm: '%d madakika',
23+
h: 'saa',
24+
hh: '%d masaa',
25+
d: 'siku',
26+
dd: '%d masiku',
27+
M: 'mwezi',
28+
MM: '%d miezi',
29+
y: 'mwaka',
30+
yy: '%d miaka'
31+
}
32+
}
33+
34+
dayjs.locale(locale, null, true)
35+
36+
export default locale

0 commit comments

Comments
 (0)