-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.js
63 lines (56 loc) · 1.8 KB
/
settings.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
var settings = {}
settings.locales = {
"Denmark": "da-DK",
"Finland (Finnish)": "fi-FI",
"Finland (Swedish)": "sv-FI",
"France": "fr-FR",
"Germany": "de-DE",
"Norway (Bokmål)": "nb-NO",
"Norway (Nynorsk)": "nn-NO",
"Sweden": "sv-SE",
"United Kingdom": "en-GB",
"United States": "en-US",
}
settings.defaults = {
software: {
allowed: ["Excel for Windows", "Excel for Mac", "Google Sheets", "LibreOffice/OpenOffice", "NeoOffice"],
default: "Excel for Windows",
},
language: {
allowed: ["Danish", "English", "Finnish", "French", "German", "Norwegian", "Portuguese", "Spanish", "Swedish"],
default: "English"
},
locale: {
allowed: [], // Uses settings.locale keys, above
default: "United Kingdom"
},
os: {
allowed: ["Windows", "MacOS", "Linux"],
default: "Windows"
}
}
settings.defaults.locale.allowed = Object.keys(settings.locales)
settings.versions = {
"Excel for Windows": ["Excel 2016", "Excel 2013", "Excel 2010", "Excel 2007"],
"Excel for Mac": ["Excel 2016", "Excel 2015", "Excel 2011", "Excel 2008"],
"LibreOffice/OpenOffice": ["6.0", "5.4", "5.3", "5.2", "5.1", "5.0", "4.4", "4.3", "4.2", "4.1", "3.6"],
"Google Sheets": [],
"NeoOffice": ["NeoOffice 2017", "NeoOffice 2015", "NeoOffice 2014", "NeoOffice 2013", "NeoOffice 3.4"]
}
settings.forcedOS = {
"Excel for Windows": "Windows",
"Excel for Mac": "MacOS",
"NeoOffice": "MacOS",
}
settings.chapters = {
"What software should I use?": "chosing-software",
"Guiding principles": "best-practices",
"Cleaning up your sheet": "cleaning-up",
"Analyzing: Pivot tables": "pivot-tables",
"Combining data": "lookup-functions",
"Splitting columns": "splitting-columns",
"Find the winner": "find-the-winner",
}
settings.defaultSpreadsheetHeight = 15
// Number of rows
module.exports = settings