siLK.js
2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
export const siLK = {
components: {
MuiBreadcrumbs: {
defaultProps: {
expandText: 'ගමන් මඟ පෙන්වන්න'
}
},
MuiTablePagination: {
defaultProps: {
getItemAriaLabel: type => {
if (type === 'first') {
return 'පළමු පිටුවට යන්න';
}
if (type === 'last') {
return 'අවසාන පිටුවට යන්න';
}
if (type === 'next') {
return 'මීළඟ පිටුවට යන්න';
}
// if (type === 'previous') {
return 'පෙර පිටුවට යන්න';
},
labelRowsPerPage: 'පිටුවක පේළි:',
labelDisplayedRows: ({
from,
to,
count
}) => `${from}–${to} දක්වා ${count !== -1 ? count : `${to} ට වැඩි ප්රමාණයකින්`}`
}
},
MuiRating: {
defaultProps: {
getLabelText: value => `තරු ${value}`,
emptyLabelText: 'හිස්'
}
},
MuiAutocomplete: {
defaultProps: {
clearText: 'මකන්න',
closeText: 'වසන්න',
loadingText: 'නැංවෙමින්…',
noOptionsText: 'විකල්ප නැත',
openText: 'විවෘත කරන්න'
}
},
MuiAlert: {
defaultProps: {
closeText: 'වසන්න'
}
},
MuiPagination: {
defaultProps: {
'aria-label': 'පිටු අතර සංචරණය',
getItemAriaLabel: (type, page, selected) => {
if (type === 'page') {
return `පිටුව ${page} ${selected ? '' : 'ට යන්න'}`;
}
if (type === 'first') {
return 'පළමු පිටුවට යන්න';
}
if (type === 'last') {
return 'අවසාන පිටුවට යන්න';
}
if (type === 'next') {
return 'මීළඟ පිටුවට යන්න';
}
// if (type === 'previous') {
return 'පෙර පිටුවට යන්න';
}
}
}
}
};