From bd289dc5e8d4d8344e51eda336212f4171504fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B9=E9=9B=AA?= <2b@yorha.xyz> Date: Wed, 10 Jun 2026 12:06:49 +0900 Subject: [PATCH] feat(ui): i18n for navbar notifications bell and user dropdown leftovers --- .../NotificationsBell/NotificationsBell.tsx | 8 +++++--- .../Navbar/UserDropdown/UserDropdown.tsx | 15 +++++++++------ ui/litellm-dashboard/src/locales/en.json | 15 +++++++++++++-- ui/litellm-dashboard/src/locales/zh-CN.json | 15 +++++++++++++-- 4 files changed, 40 insertions(+), 13 deletions(-) diff --git a/ui/litellm-dashboard/src/components/Navbar/NotificationsBell/NotificationsBell.tsx b/ui/litellm-dashboard/src/components/Navbar/NotificationsBell/NotificationsBell.tsx index a3b7678e1e7..3248043ecdf 100644 --- a/ui/litellm-dashboard/src/components/Navbar/NotificationsBell/NotificationsBell.tsx +++ b/ui/litellm-dashboard/src/components/Navbar/NotificationsBell/NotificationsBell.tsx @@ -8,10 +8,12 @@ import { emitLocalStorageChange, setLocalStorageItem } from "@/utils/localStorag import { BellOutlined } from "@ant-design/icons"; import { Badge, Button, Popover, Typography } from "antd"; import React, { useState } from "react"; +import { useTranslation } from "react-i18next"; export const AGENT_PLATFORM_URL = "https://github.com/BerriAI/litellm-agent-platform"; export const NotificationsBell: React.FC = () => { + const { t } = useTranslation(); const hidden = useHideAgentPlatformBanner(); const hasUnread = !hidden; const [open, setOpen] = useState(false); @@ -28,7 +30,7 @@ export const NotificationsBell: React.FC = () => { LiteLLM Agent Platform - Open-source agent infra — sandboxes, durable sessions, and workers on AWS Fargate. + {t("navbar.notificationsBell.agentPlatformDesc")}
{hasUnread ? ( ) : null}
@@ -48,7 +50,7 @@ export const NotificationsBell: React.FC = () => {