-
Notifications
You must be signed in to change notification settings - Fork 4
/
i18n.js
30 lines (29 loc) · 1.2 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
/* eslint-disable @typescript-eslint/no-var-requires */
const { LANG } = require("./src/configs/site-config");
module.exports = {
defaultLocale: LANG.DEFAULT,
locales: Object.keys(LANG.LIST),
pages: {
"*": ["common", "header", "auth", "form"],
"/": ["home", "group"],
"/about": ["group"],
"/edit": ["group"],
"/group/[groupName]": ["home"],
"/group/[groupName]/show": ["home"],
"rgx:/admin": ["admin", "group"],
"rgx:/datatable/": ["activity", "datatable", "form", "observation"],
"rgx:/document/": ["document", "observation", "filters", "activity"],
"rgx:/group/": ["group"],
"rgx:/landscape/": ["landscape", "observation", "filters", "activity"],
"rgx:/map": ["page", "map"],
"rgx:/observation/": ["observation", "datatable", "filters", "activity"],
"rgx:/page/": ["page", "activity"],
"rgx:/register": ["user"],
"rgx:/roles/": ["filters", "taxon"],
"rgx:/species/": ["observation", "species", "filters", "activity", "taxon"],
"rgx:/taxonomy/": ["activity", "filters", "taxon", "species"],
"rgx:/text-curation/": ["text-curation", "observation"],
"rgx:/user/": ["user", "group", "filters"],
"rgx:/user/leaderboard": ["leaderboard"]
}
};