forked from forbole/big-dipper-2.0-cosmos
-
Notifications
You must be signed in to change notification settings - Fork 2
/
i18n.js
18 lines (18 loc) · 813 Bytes
/
i18n.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module.exports = {
// locales: ['en', 'zht'],
locales: ['en'],
defaultLocale: 'en',
pages: {
'*': ['common'],
'/': ['home', 'blocks', 'transactions'],
'rgx:^/@*': ['profiles', 'accounts'],
'rgx:^/blocks': ['blocks', 'transactions', 'message_labels', 'message_contents'],
'rgx:^/transactions': ['transactions', 'message_labels', 'message_contents'],
'rgx:^/proposals': ['proposals'],
'rgx:^/validators': ['validators', 'transactions', 'accounts', 'message_labels', 'message_contents'],
'rgx:^/accounts': ['accounts', 'transactions', 'validators', 'message_labels', 'message_contents'],
'rgx:^/params': ['params'],
'rgx:^/token': ['token', 'transactions'],
},
loadLocaleFrom: (lang, ns) => import(`./public/locales/${lang}/${ns}.json`).then((m) => m.default),
};