From e03fcd1fdb5f4a136b5237e466ac180c3cbda8a9 Mon Sep 17 00:00:00 2001 From: Chesterkxng Date: Sun, 4 Oct 2026 12:43:42 +0200 Subject: [PATCH] chore: Hire me removed for translation help --- public/locales/en/translation.json | 2 +- src/components/Navbar/index.tsx | 24 ++++++++---------------- 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 5b4efe41..38dabc4f 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -136,7 +136,7 @@ }, "navbar": { "buyMeACoffee": "Buy me a coffee", - "hireMe": "Hire me", + "helpTranslate": "Help translate", "home": "Home", "tools": "Tools" }, diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx index 97a3717c..7b000062 100644 --- a/src/components/Navbar/index.tsx +++ b/src/components/Navbar/index.tsx @@ -42,8 +42,6 @@ const languages = [ { code: 'uk', label: 'Українська' }, { code: 'zh', label: '中文' } ]; -const translationContributionUrl = - 'https://www.locize.app/register?invitation=YOIH0Dyz3KHh3uQFCGYe9v1QOUoq8W5ySgmlwjX9cSypeJmt8F40brDtVbXb71fK'; const Navbar: React.FC = ({ mode, @@ -60,8 +58,6 @@ const Navbar: React.FC = ({ const handleLanguageChange = (event: any) => { const newLanguage = event.target.value; - if (!newLanguage) return; - i18n.changeLanguage(newLanguage); localStorage.setItem('lang', newLanguage); }; @@ -93,13 +89,6 @@ const Navbar: React.FC = ({ } }} > - - Help translate OmniTools - {languages.map((lang) => ( {lang.label} @@ -125,12 +114,14 @@ const Navbar: React.FC = ({ } />, window.open('https://discord.gg/SDbbn3hT4b', '_blank')} style={{ cursor: 'pointer' }} fontSize={30} icon={'ic:baseline-discord'} />, , ]; const drawerList = ( @@ -168,8 +160,8 @@ const Navbar: React.FC = ({ ))} - {buttons.map((button) => ( - {button} + {buttons.map((button, index) => ( + {button} ))} );