forked from forbole/big-dipper-2.0-cosmos
-
Notifications
You must be signed in to change notification settings - Fork 1
/
i18n.js
17 lines (17 loc) · 767 Bytes
/
i18n.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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'],
},
loadLocaleFrom: (lang, ns) => import(`./public/locales/${lang}/${ns}.json`).then((m) => m.default),
};