import { List, New, AccountShow, AccountUpdate } from './components'
import { makeRoutes } from 'features/shared'
-export default (store) => makeRoutes(store, 'account', List, New, AccountShow, AccountUpdate)
+export default (store) => makeRoutes(store, 'account', List, New, AccountShow, AccountUpdate, {name_zh: '账户'})
import { List, New, AssetShow, AssetUpdate } from './components'
import { makeRoutes } from 'features/shared'
-export default (store) => makeRoutes(store, 'asset', List, New, AssetShow, AssetUpdate)
+export default (store) => makeRoutes(store, 'asset', List, New, AssetShow, AssetUpdate, {name_zh: '资产'})
import { List, New } from './components'
import { makeRoutes } from 'features/shared'
-export default (store) => makeRoutes(store, 'key', List, New, null, null, { skipFilter: true, name: 'Keys' })
+export default (store) => makeRoutes(store, 'key', List, New, null, null, { skipFilter: true, name: 'Keys', name_zh:'密钥' })
const routes = makeRoutes()
const pathname = state.routing.locationBeforeTransitions.pathname
const breadcrumbs = []
+ const lang = state.core.lang
let currentRoutes = routes.childRoutes
let currentPath = []
currentPath.push(component)
if (!match.skipBreadcrumb) {
+ let crumbName = match.name || humanize(component)
+ if( lang === 'zh' && match.name_zh ){
+ crumbName = match.name_zh
+ }
breadcrumbs.push({
- name: match.name || humanize(component),
+ name: crumbName ,
path: currentPath.join('/')
})
}
path: options.path || type + 's',
component: RoutingContainer,
name: options.name || humanize(type + 's'),
+ name_zh: options.name_zh,
indexRoute: {
component: List,
onEnter: (nextState, replace) => {
path: 'generated/:id',
component: GeneratedTxHex,
},
- ]
+ ],
+ name_zh: '交易'
}
)
}