-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathconfig.js
55 lines (52 loc) · 1.45 KB
/
config.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
/* config.js
* This file contains globally accessable config with repetative usage
*/
const globalConfig = {
globalModule: require.resolve('./src/global/client_module.js'),
globalStyle: require.resolve('./src/global/global.css'),
siteUrl: "https://asean.buildtheearth.asia",
baseGithubUrl: "https://github.com/ASEAN-Build-The-Earth",
discordInviteLink: "https://discord.gg/DNwnKmkQpw",
googleGtag: "G-FT2L3SS4RX",
globalScript: [{
/* kofi widget button script, will be drawn on footer */
defer: false,
async: false,
src: 'https://storage.ko-fi.com/cdn/scripts/overlay-widget.js',
id: "kofi-overlay-widget-script",
}],
}
const i18nConfig = {
defaultLocale: 'en',
registeredLocales: ['en', 'th', 'my', 'id', 'vn', 'ph'],
localeConfigs: {
/**
* htmlLang code: [https://gist.github.com/JamieMason/3748498]
*/
en: { label: 'English',
direction: 'ltr',
htmlLang: 'en-US',
},
th: { label: 'Thai',
direction: 'ltr',
htmlLang: 'th-TH',
},
my: { label: 'Malay',
direction: 'ltr',
htmlLang: 'ms-MY',
},
id: { label: 'Indonesian',
direction: 'ltr',
htmlLang: 'id-ID',
},
vn: { label: 'tiếng Việt',
direction: 'ltr',
htmlLang: 'vi-VN',
},
ph: { label: 'Filipino',
direction: 'ltr',
htmlLang: 'en-PH',
},
},
}
module.exports = { globalConfig, i18nConfig }