-
Notifications
You must be signed in to change notification settings - Fork 0
/
i18n.js
111 lines (110 loc) · 3.23 KB
/
i18n.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
module.exports = {
locales: ['en', 'nl', 'zh'],
defaultLocale: 'en',
loadLocaleFrom: async (lang, ns) => {
const locales = await import(`./locales/${lang}/${ns}.json`).then(
(m) => m.default
);
const defaultLocales = await import(`./locales/en/${ns}.json`).then(
(m) => m.default
);
return { ...defaultLocales, ...locales };
},
pages: {
'*': [
'languageSelector',
'acceptableUsePolicy',
'baselineSuccess',
'common',
'cookiesConsentManager',
'corporateEmissionForm',
'form',
'fuels',
'ieaRange',
'inexperiencedFlow',
'legalDisclaimer',
'locations',
'modals',
'processRefrigerants',
'solutionInterests',
'targetForm',
'taskList',
'termsOfUse',
'companyTeamMembers',
'roles',
'errorPage',
],
'/': [
'publicNavigation',
'publicHome',
'publicSolutions',
'publicTestimonial',
],
'/acceptable-use': ['acceptableUsePolicy', 'publicNavigation'],
'/legal-disclaimer': ['legalDisclaimer', 'publicNavigation'],
'/terms-of-use': ['termsOfUse', 'publicNavigation'],
'/stories': ['publicNavigation', 'publicSolutions'],
'rgx:/stories.*': ['publicNavigation', 'publicSolutions'],
'/features': ['publicFeatures', 'publicNavigation'],
'/join-us': ['publicNavigation', 'publicGetInTouch', 'form'],
'/demo': ['publicNavigation', 'publicGetInTouch', 'form'],
'/contact-us': ['publicNavigation', 'publicGetInTouch', 'form'],
'/dashboard': [
'carbonIntensity',
'categories',
'dashboard',
'emissionRankTable',
'emissionsOverviewChart',
'sectors',
'scope3Dashboard',
'userOnboarding',
'removeEmissionForm',
],
'/admin-dashboard/users': ['usersAdminDashboard'],
'/admin-dashboard/companies': ['companiesAdminDashboard'],
'/ambition-simulation': [
'ambitionSimulation',
'contactUs',
'locations',
'privateSolutions',
'carbonIntensity',
],
'rgx:/account-settings.*': [
'accountSettings',
'companyRelationships',
'sectors',
'usersAdminDashboard',
'carbonIntensity',
],
'rgx:/network.*': ['companyRelationships', 'networkSettings'],
'rgx:/network/getting-started': [
'networkGettingStarted',
'contactUs',
'privateSolutions',
],
'/trendline-calculation': ['trendlineCalculation', 'carbonIntensity'],
'rgx:/value-chain.*': ['valueChain', 'carbonIntensity', 'community'],
'/simulation-calculations': ['ambitionSimulationInfo', 'carbonIntensity'],
'/solutions': ['privateSolutions', 'carbonIntensity'],
'rgx:/solutions.*': [
'contactUs',
'privateSolutions',
'solutionDetail',
'carbonIntensity',
'publicSolutions',
],
'/handle-invitation': ['handleInvitation'],
'/login': ['login', 'publicNavigation'],
'/used-invite-token': ['usedInviteToken'],
'/invite-expired': ['inviteExpired'],
'/forbidden': ['forbidden'],
'/community': ['community'],
'/privacy/update-wizard': ['dataPrivacyWizard'],
'/company/[id]': [
'companyOverview',
'carbonIntensity',
'companyRelationships',
'emissionsOverviewChart',
],
},
};