mirror of
https://github.com/iib0011/omni-tools.git
synced 2026-12-06 03:05:20 +03:00
chore: Hire me removed for translation help
This commit is contained in:
1 parent
509dfba4c9
commit
e03fcd1fdb
2 files changed
+9
-17
No files matched your search
@@ -136,7 +136,7 @@
|
||||
},
|
||||
"navbar": {
|
||||
"buyMeACoffee": "Buy me a coffee",
|
||||
"hireMe": "Hire me",
|
||||
"helpTranslate": "Help translate",
|
||||
"home": "Home",
|
||||
"tools": "Tools"
|
||||
},
|
||||
|
||||
@@ -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<NavbarProps> = ({
|
||||
mode,
|
||||
@@ -60,8 +58,6 @@ const Navbar: React.FC<NavbarProps> = ({
|
||||
|
||||
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<NavbarProps> = ({
|
||||
}
|
||||
}}
|
||||
>
|
||||
<MenuItem
|
||||
href={translationContributionUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Help translate OmniTools
|
||||
</MenuItem>
|
||||
{languages.map((lang) => (
|
||||
<MenuItem key={lang.code} value={lang.code}>
|
||||
{lang.label}
|
||||
@@ -125,12 +114,14 @@ const Navbar: React.FC<NavbarProps> = ({
|
||||
}
|
||||
/>,
|
||||
<Icon
|
||||
key="discord"
|
||||
onClick={() => window.open('https://discord.gg/SDbbn3hT4b', '_blank')}
|
||||
style={{ cursor: 'pointer' }}
|
||||
fontSize={30}
|
||||
icon={'ic:baseline-discord'}
|
||||
/>,
|
||||
<iframe
|
||||
key="github-star"
|
||||
src="https://ghbtns.com/github-btn.html?user=iib0011&repo=omni-tools&type=star&count=true&size=large"
|
||||
frameBorder="0"
|
||||
scrolling="0"
|
||||
@@ -139,9 +130,10 @@ const Navbar: React.FC<NavbarProps> = ({
|
||||
title="GitHub"
|
||||
></iframe>,
|
||||
<Button
|
||||
key="translate"
|
||||
onClick={() => {
|
||||
window.open(
|
||||
'https://drive.google.com/file/d/1-r9-rDYnDJic9dnDywKTAsueehIAVp5F/view?usp=sharing',
|
||||
'https://www.locize.app/register?invitation=YOIH0Dyz3KHh3uQFCGYe9v1QOUoq8W5ySgmlwjX9cSypeJmt8F40brDtVbXb71fK',
|
||||
'_blank'
|
||||
);
|
||||
}}
|
||||
@@ -151,11 +143,11 @@ const Navbar: React.FC<NavbarProps> = ({
|
||||
<Icon
|
||||
style={{ cursor: 'pointer' }}
|
||||
fontSize={25}
|
||||
icon={'hugeicons:job-search'}
|
||||
icon={'ix:language-filled'}
|
||||
/>
|
||||
}
|
||||
>
|
||||
{t('navbar.hireMe')}
|
||||
{t('navbar.helpTranslate')}
|
||||
</Button>
|
||||
];
|
||||
const drawerList = (
|
||||
@@ -168,8 +160,8 @@ const Navbar: React.FC<NavbarProps> = ({
|
||||
<ListItemText primary={navItem.label} />
|
||||
</ListItemButton>
|
||||
))}
|
||||
{buttons.map((button) => (
|
||||
<ListItem>{button}</ListItem>
|
||||
{buttons.map((button, index) => (
|
||||
<ListItem key={index}>{button}</ListItem>
|
||||
))}
|
||||
</List>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user