finish localization

This commit is contained in:
liangping
2021-07-22 10:39:17 +08:00
parent cd27cc4e04
commit 3fb71b2dda
16 changed files with 216 additions and 866 deletions
+1 -18
View File
@@ -1,18 +1 @@
export default [
{
header: 'Pages',
icon: 'FileIcon',
children: [
{
title: 'Home',
route: 'home',
icon: 'HomeIcon',
},
{
title: 'Second Page',
route: 'second-page',
icon: 'FileIcon',
},
],
},
]
// unimplement
+10 -11
View File
@@ -3,35 +3,35 @@ import store from '@/store'
const modules = [
{
scope: 'normal',
title: 'Summary',
title: 'summary',
route: 'info',
},
{
scope: 'normal',
title: 'Staking',
title: 'staking',
route: 'staking',
},
{
scope: 'normal',
title: 'Governance',
title: 'governance',
route: 'governance',
},
]
function processMenu() {
const chainMenus = [
// {
// title: 'Home',
// route: 'home',
// icon: 'HomeIcon',
// },
{
title: 'Home',
route: 'home',
icon: 'HomeIcon',
},
{
header: 'Blockchains',
header: 'blockchains',
},
]
Object.keys(store.state.chains.chains).forEach(chain => {
const menu = {
title: chain.toUpperCase(),
title: chain,
icon: 'PieChartIcon',
}
const children = []
@@ -49,6 +49,5 @@ function processMenu() {
})
return chainMenus
}
console.log(modules)
export default processMenu()