From 3407f1173069e578855d9b9d5f267180ae4e01a5 Mon Sep 17 00:00:00 2001 From: AlphaX-Projects <77661270+AlphaX-Projects@users.noreply.github.com> Date: Sat, 17 Jun 2023 15:27:02 +0200 Subject: [PATCH] Make tabs title multi language --- core/src/components/show-plugin.js | 42 +++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/core/src/components/show-plugin.js b/core/src/components/show-plugin.js index 984e6fbe..dfb53ce2 100644 --- a/core/src/components/show-plugin.js +++ b/core/src/components/show-plugin.js @@ -280,10 +280,40 @@ class ShowPlugin extends connect(store)(LitElement) { let icon = '' let count = 0 - if (tab.myPlugObj && tab.myPlugObj.title) { - title = tab.myPlugObj.title + if (tab.myPlugObj && tab.myPlugObj.title === "Minting Details") { + title = html`${translate('tabmenu.tm1')}` + } else if (tab.myPlugObj && tab.myPlugObj.title === "Become a Minter") { + title = html`${translate('tabmenu.tm2')}` + } else if (tab.myPlugObj && tab.myPlugObj.title === "Sponsorship List") { + title = html`${translate('tabmenu.tm3')}` + } else if (tab.myPlugObj && tab.myPlugObj.title === "Wallets") { + title = html`${translate('tabmenu.tm4')}` + } else if (tab.myPlugObj && tab.myPlugObj.title === "Trade Portal") { + title = html`${translate('tabmenu.tm5')}` + } else if (tab.myPlugObj && tab.myPlugObj.title === "Auto Buy") { + title = html`${translate('tabmenu.tm6')}` + } else if (tab.myPlugObj && tab.myPlugObj.title === "Reward Share") { + title = html`${translate('tabmenu.tm7')}` + } else if (tab.myPlugObj && tab.myPlugObj.title === "Q-Chat") { + title = html`${translate('tabmenu.tm8')}` + } else if (tab.myPlugObj && tab.myPlugObj.title === "Name Registration") { + title = html`${translate('tabmenu.tm9')}` + } else if (tab.myPlugObj && tab.myPlugObj.title === "Names Market") { + title = html`${translate('tabmenu.tm10')}` + } else if (tab.myPlugObj && tab.myPlugObj.title === "Websites") { + title = html`${translate('tabmenu.tm11')}` + } else if (tab.myPlugObj && tab.myPlugObj.title === "Q-Apps") { + title = html`${translate('tabmenu.tm12')}` + } else if (tab.myPlugObj && tab.myPlugObj.title === "Group Management") { + title = html`${translate('tabmenu.tm13')}` + } else if (tab.myPlugObj && tab.myPlugObj.title === "Data Management") { + title = html`${translate('tabmenu.tm14')}` + } else if (tab.myPlugObj && tab.myPlugObj.title === "Puzzles") { + title = html`${translate('tabmenu.tm15')}` + } else if (tab.myPlugObj && tab.myPlugObj.title === "Node Management") { + title = html`${translate('tabmenu.tm16')}` } else { - title = 'New Tab' + title = html`${translate('tabmenu.tm17')}` } if (tab.myPlugObj && tab.myPlugObj.mwcicon) { @@ -344,7 +374,7 @@ class ShowPlugin extends connect(store)(LitElement) { })} +