diff --git a/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/AgentIdentityFields.tsx b/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/AgentIdentityFields.tsx index d4af3ff3833..00c8fce98d1 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/AgentIdentityFields.tsx +++ b/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/AgentIdentityFields.tsx @@ -8,6 +8,7 @@ import { Input } from "@/components/ui/input"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { AgentFormField, type AgentFormValues } from "./AgentFormKit"; import { entraTenantFromIssuer, IDENTITY_UUID_PATTERN } from "./agent_identity"; +import { codeSamples } from "@/i18n/untranslated/codeSamples"; const PROVIDER_OPTIONS: { value: string; labelKey: ParseKeys }[] = [ { value: "none", labelKey: "agents.identityFields.providers.none" }, @@ -206,7 +207,7 @@ export const AgentIdentityFields = ({ accessToken }: { accessToken: string | nul ref={ref} value={typeof value === "string" ? value : ""} onChange={onChange} - placeholder="Agent.Invoke" + placeholder={codeSamples.agents.identityScope} /> )} diff --git a/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/KillSwitchFormFields.tsx b/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/KillSwitchFormFields.tsx index 2b9a0edb70d..6abeb5d18ea 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/KillSwitchFormFields.tsx +++ b/ui/litellm-dashboard/src/app/(dashboard)/agents/_components/KillSwitchFormFields.tsx @@ -11,6 +11,7 @@ import { PasswordInput } from "@/components/shared/PasswordInput"; import i18n from "@/i18n/i18n"; import { AgentFormField, AgentFormValues, labelWithHint } from "./AgentFormKit"; import { KILL_SWITCH_AUTH_TYPES, KILL_SWITCH_METHODS, validateKillSwitchBody } from "./kill_switch_config"; +import { codeSamples } from "@/i18n/untranslated/codeSamples"; const KeyValueFieldArray = ({ name, @@ -135,7 +136,7 @@ const KillSwitchAuthFields = () => { ( {...control} ref={ref} rows={4} - placeholder='{"reason": "manual kill switch"}' + placeholder={codeSamples.agents.killSwitchPayloadJson} value={typeof value === "string" ? value : ""} onChange={onChange} /> diff --git a/ui/litellm-dashboard/src/app/(dashboard)/api-reference/_components/APIReferenceView.tsx b/ui/litellm-dashboard/src/app/(dashboard)/api-reference/_components/APIReferenceView.tsx index 7f6f7ea1d17..f55dc2e4c82 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/api-reference/_components/APIReferenceView.tsx +++ b/ui/litellm-dashboard/src/app/(dashboard)/api-reference/_components/APIReferenceView.tsx @@ -4,6 +4,7 @@ import { useTranslation } from "react-i18next"; import CodeBlock from "@/components/CodeBlock"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import DocLink from "./DocLink"; +import { productNames } from "@/i18n/untranslated/productNames"; interface ApiRefProps { proxySettings: { @@ -36,13 +37,13 @@ const APIReferenceView: React.FC = ({ proxySettings }) => { - OpenAI Python SDK + {productNames.openAIPythonSdk} - LlamaIndex + {productNames.llamaIndex} - Langchain Py + {productNames.langchainPython} diff --git a/ui/litellm-dashboard/src/app/(dashboard)/caching/_components/cache_health.tsx b/ui/litellm-dashboard/src/app/(dashboard)/caching/_components/cache_health.tsx index 382438d9efe..db532fafefe 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/caching/_components/cache_health.tsx +++ b/ui/litellm-dashboard/src/app/(dashboard)/caching/_components/cache_health.tsx @@ -5,6 +5,8 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { CheckCircle2, XCircle, ClipboardCopy } from "lucide-react"; import { ResponseTimeIndicator } from "./response_time_indicator"; +const UNHEALTHY_STATUS = "unhealthy"; + // Helper function to deep-parse a JSON string if possible const deepParse = (input: any) => { let parsed = input; @@ -179,7 +181,7 @@ const HealthCheckDetails: React.FC<{ response: any }> = ({ response }) => { className={`text-sm font-medium ${response?.status === "healthy" ? "text-success" : "text-destructive"}`} > {t("caching.health.cacheStatus")} - {response?.status || "unhealthy"} + {response?.status || UNHEALTHY_STATUS}

diff --git a/ui/litellm-dashboard/src/app/(dashboard)/guardrails-monitor/_components/EvaluationSettingsModal.tsx b/ui/litellm-dashboard/src/app/(dashboard)/guardrails-monitor/_components/EvaluationSettingsModal.tsx index 12ff10bc0c5..0c3cb62a57f 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails-monitor/_components/EvaluationSettingsModal.tsx +++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails-monitor/_components/EvaluationSettingsModal.tsx @@ -14,6 +14,7 @@ import { DialogTitle, } from "@/components/ui/dialog"; import { Textarea } from "@/components/ui/textarea"; +import { codeSamples } from "@/i18n/untranslated/codeSamples"; const DEFAULT_PROMPT = `Evaluate whether this guardrail's decision was correct. Analyze the user input, the guardrail action taken, and determine if it was appropriate. @@ -130,7 +131,7 @@ export function EvaluationSettingsModal({ -

response_format: json_schema

+

{codeSamples.guardrails.evaluationResponseFormat}