From f3de156546479923b8cb0afa9bafd438b6125ad1 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sat, 3 Dec 2022 09:24:00 +0800 Subject: [PATCH] fixed mutiliguage issue --- src/@core/layouts/modules.js | 20 ++++++++++---------- src/lang/locales/en.json | 5 ++++- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/@core/layouts/modules.js b/src/@core/layouts/modules.js index 4d525a10..633fd96b 100644 --- a/src/@core/layouts/modules.js +++ b/src/@core/layouts/modules.js @@ -1,53 +1,53 @@ export default () => ([ { scope: 'normal', - title: 'dashboard', + title: 'dashboard.dashboard', route: 'dashboard', }, { scope: 'normal', - title: 'blocks', + title: 'dashboard.blocks', route: 'blocks', }, { scope: 'normal', - title: 'staking', + title: 'dashboard.staking', route: 'staking', }, { scope: 'normal', - title: 'governance', + title: 'dashboard.governance', route: 'governance', exclude: 'emoney', }, { scope: 'normal', - title: 'uptime', + title: 'dashboard.uptime', route: 'uptime', }, { scope: 'normal', - title: 'parameters', + title: 'dashboard.parameters', route: 'parameters', }, { scope: 'normal', - title: 'statesync', + title: 'dashboard.statesync', route: 'statesync', }, { scope: 'normal', - title: 'consensus', + title: 'dashboard.consensus', route: 'consensus', }, { scope: 'cos-mos', - title: 'gravity', + title: 'dashboard.gravity', route: 'gravity', }, { scope: 'osmosis', - title: 'trade', + title: 'dashboard.trade', route: 'osmosis-trade', }, ]) diff --git a/src/lang/locales/en.json b/src/lang/locales/en.json index 52e2a4bc..de5519fd 100644 --- a/src/lang/locales/en.json +++ b/src/lang/locales/en.json @@ -40,6 +40,7 @@ }, "dashboard": { + "dashboard": "Dashboard", "staking": "Staking", "governance": "Governance", "summary": "Summary", @@ -47,7 +48,9 @@ "blockchains": "Blockchains", "uptime": "Uptime", "statesync": "State Sync", - "trade": "Trade" + "trade": "Trade", + "parameters": "Parameters", + "consensus": "consensus" }, "governance-proposal": {