Skip to content

Commit ebdb8e0

Browse files
committed
feat(ui/lang): Add Malaysan language pack (quasarframework#12019)
1 parent 7d20d72 commit ebdb8e0

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

ui/lang/index.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@
127127
"isoName": "ms",
128128
"nativeName": "Bahasa Melayu"
129129
},
130+
{
131+
"isoName": "my",
132+
"nativeName": "Malaysia"
133+
},
130134
{
131135
"isoName": "nb-no",
132136
"nativeName": "Norsk"
@@ -203,4 +207,4 @@
203207
"isoName": "zh-hant",
204208
"nativeName": "中文(繁體)"
205209
}
206-
]
210+
]

ui/lang/my.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ export default {
2121
daysShort: 'Aha_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
2222
months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
2323
monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogo_Sep_Okt_Nov_Dis'.split('_'),
24-
headerTitle: date => new Intl.DateTimeFormat('my', {
25-
weekday: 'short', month: 'short', day: 'numeric'
26-
}).format(date),
24+
headerTitle: function (date) {
25+
return new Intl.DateTimeFormat('my', {
26+
weekday: 'short', month: 'short', day: 'numeric'
27+
}).format(date)
28+
},
2729
firstDayOfWeek: 0, // 0-6, 0 - Sunday, 1 Monday, ...
2830
format24h: false,
2931
pluralDay: 'langit'
@@ -32,10 +34,14 @@ export default {
3234
noData: 'tiada data tersedia',
3335
noResults: 'Tiada data yang sepadan ditemui',
3436
loading: 'memuatkan...',
35-
selectedRecords: rows => 'dipilih' + rows + 'baris',
37+
selectedRecords: function (rows) {
38+
return 'dipilih' + rows + 'baris'
39+
},
3640
recordsPerPage: 'baris setiap muka surat:',
3741
allRows: 'semua',
38-
pagination: (start, end, total) => start + '-' + end + ' / ' + total,
42+
pagination: function (start, end, total) {
43+
return start + '-' + end + ' / ' + total
44+
},
3945
columns: 'Senaraikan'
4046
},
4147
editor: {

0 commit comments

Comments
 (0)