neNP.js
2.61 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
74
75
76
77
// Nepali-नेपाली
export const neNP = {
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 => {
const lastDigit = value % 10;
return `${value} तारा${lastDigit === 1 ? 'स' : ''}`;
},
emptyLabelText: 'खाली'
}
},
MuiAutocomplete: {
defaultProps: {
clearText: 'खाली गर्नुहोस्',
closeText: 'बन्द गर्नुहोस्',
loadingText: 'लोड हुँदै...',
noOptionsText: 'कुनै विकल्प छैन',
openText: 'खोल्नुहोस्'
}
},
MuiAlert: {
defaultProps: {
closeText: 'बन्द गर्नुहोस्'
}
},
MuiPagination: {
defaultProps: {
'aria-label': 'पृष्ठांकन नेभिगेसन',
getItemAriaLabel: (type, page, selected) => {
if (type === 'page') {
return `${selected ? '' : 'जाऊ त्यहाँ '}पृष्ठ ${page}`;
}
if (type === 'first') {
return 'पहिलो पृष्ठमा जानुहोस्';
}
if (type === 'last') {
return 'अन्तिम पृष्ठमा जानुहोस्';
}
if (type === 'next') {
return 'अर्को पृष्ठमा जानुहोस्';
}
// if (type === 'previous') {
return 'अघिल्लो पृष्ठमा जानुहोस्';
}
}
}
}
};