-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.ts
45 lines (39 loc) · 979 Bytes
/
config.ts
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
const config = {
/**
* GLOBAL SETTINGS
*/
finalCsvName: 'ip-to-country.csv',
country: {
/**
* COUNTRY SETTINGS
*/
tempCsvName: 'ip-to-country.temp.csv',
outputFolderName: 'output',
useUtf8: false,
// otherwise use traditional local encoding
normalizeEnglish: true,
// (normalizeEnglish: remove diacritics for English)
},
city: {
/**
* CITY SETTINGS
*/
lang: 'en',
tempCsvName: 'ip-to-country.city.temp.csv',
outputFolderName: 'output_city',
useUtf8: false,
normalizeEnglish: true,
},
cncity: {
/**
* CNCITY SETTINGS
*/
lang: 'zh-CN', // should usually be 'zh-*'
tempCsvName: 'ip-to-country.cncity.temp.csv',
outputFolderName: 'output_cncity',
useUtf8: false,
merge: true,
mergeNotAddCn: true, // when `merge` is `true`, just Chinese province/city such as '上海市静安区' will suffice, no need to add '中国'
},
}
export default config