fix: translate UI elements in menu and uptime page

- Added translations for sidebar menu items in all languages
- Fixed "Create new" button to use translation instead of hardcoded text
- Added missing translations for "Bulk Import" in Russian and Turkish
- Translated status box labels (UP, DOWN, PAUSED) in the uptime monitors page
- Made greeting component fully translatable with proper context
- Fixed lint warnings in components
This commit is contained in:
mohadeseh safari committed 2025-05-09 14:58:13 -04:00
1 parent 3a574b2f4e
commit 13c4390f96
6 files changed
+66 -18

No files matched your search

@@ -6,7 +6,7 @@ import { useTheme } from "@emotion/react";
const CreateMonitorHeader = ({
isAdmin,
label = "Create new",
label,
isLoading = true,
path,
bulkPath,
@@ -14,6 +14,8 @@ const CreateMonitorHeader = ({
const navigate = useNavigate();
const { t } = useTranslation();
const theme = useTheme();
// Use the provided label or fall back to the translated default
if (!isAdmin) return null;
@@ -30,7 +32,7 @@ const CreateMonitorHeader = ({
color="accent"
onClick={() => navigate(path)}
>
{label}
{label || t("createNew")}
</Button>
{bulkPath && (
<Button