-
Notifications
You must be signed in to change notification settings - Fork 3
/
en.js
46 lines (46 loc) · 997 Bytes
/
en.js
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
module.exports = {
localeId: 'en',
numeralFormat: {
delimiters: {
thousands: ',',
decimal: '.'
},
abbreviations: {
thousand: 'k',
million: 'm',
billion: 'b',
trillion: 't'
},
ordinal: function(number) {
var b = number % 10;
return (~~(number % 100 / 10) === 1) ? 'th' :
(b === 1) ? 'st' :
(b === 2) ? 'nd' :
(b === 3) ? 'rd' : 'th';
},
currency: {
symbol: '$'
},
formats: [ // 定义缩写
{name: 'currency', format: '$ 0,0[.]00'}
]
},
translation: {
"messages" : {
"" : {
"domain" : "messages",
"lang" : "en",
"plural_forms" : "nplurals=2; plural=(n != 1);",
},
"some key" : [ "some key"]
},
"setting" : {
"" : {
"domain" : "setting",
"lang" : "en",
"plural_forms" : "nplurals=2; plural=(n != 1);",
},
"some key" : [ "some key in setting domain"]
}
}
}