Skip to content

Commit cb208b0

Browse files
pete-arifiamkun
authored andcommitted
fix: Add Bahasa Melayu (Malaysia) locale (#485)
1 parent f251493 commit cb208b0

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

src/locale/ms.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: 'ms',
5+
weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
6+
months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
7+
weekStart: 1,
8+
formats: {
9+
LT: 'HH.mm',
10+
LTS: 'HH.mm.ss',
11+
L: 'DD/MM/YYYY',
12+
LL: 'D MMMM YYYY',
13+
LLL: 'D MMMM YYYY HH.mm',
14+
LLLL: 'dddd, D MMMM YYYY HH.mm'
15+
},
16+
relativeTime: {
17+
future: 'dalam %s',
18+
past: '%s yang lepas',
19+
s: 'beberapa saat',
20+
m: 'seminit',
21+
mm: '%d minit',
22+
h: 'sejam',
23+
hh: '%d jam',
24+
d: 'sehari',
25+
dd: '%d hari',
26+
M: 'sebulan',
27+
MM: '%d bulan',
28+
y: 'setahun',
29+
yy: '%d tahun'
30+
},
31+
ordinal: n => `${n}.`
32+
}
33+
34+
dayjs.locale(locale, null, true)
35+
36+
export default locale

0 commit comments

Comments
 (0)