-
Notifications
You must be signed in to change notification settings - Fork 11
/
languages.js
49 lines (49 loc) · 1.26 KB
/
languages.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
47
48
49
module.exports = {
'en-US': {
// value for true
true: 'TRUE',
// value for false
false: 'FALSE',
// separates vertical data
verticalSeparator: ';',
// separates horizatonal data
horizontalSeparator: ',',
// separates function arguments
argumentSeparator: ',',
// decimal point in numbers
decimalSeparator: '.',
// returns number string that can be parsed by Number()
reformatNumberForJsParsing: function (n) {
return n;
},
isScientificNotation: function (token) {
return /^[1-9]{1}(\.[0-9]+)?E{1}$/.test(token);
}
},
'de-DE': {
true: 'WAHR',
false: 'FALSCH',
verticalSeparator: ';',
horizontalSeparator: '.',
argumentSeparator: ';',
decimalSeparator: ',',
reformatNumberForJsParsing: function (n) {
return n.replace(',', '.');
},
isScientificNotation: function (token) {
return /^[1-9]{1}(,[0-9]+)?E{1}$/.test(token);
}
},
'en-EU': {
verticalSeparator: ';',
horizontalSeparator: '.',
argumentSeparator: ';',
decimalSeparator: ',',
reformatNumberForJsParsing: function (n) {
return n.replace(',', '.');
},
isScientificNotation: function (token) {
return /^[1-9]{1}(,[0-9]+)?E{1}$/.test(token);
}
}
};