Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

feat(i18n): internationalize dashboard and API manager components

diegosouzapw2126b0ee8dd1
diff --git a/src/app/(dashboard)/dashboard/api-manager/ApiManagerPageClient.tsx b/src/app/(dashboard)/dashboard/api-manager/ApiManagerPageClient.tsx
index d8ab6b7f3f..91b77c6e01 100644
--- a/src/app/(dashboard)/dashboard/api-manager/ApiManagerPageClient.tsx
+++ b/src/app/(dashboard)/dashboard/api-manager/ApiManagerPageClient.tsx
@@ -32,18 +32,21 @@ function sanitizeInput(input: string): string {
}
// Validate key name
-function validateKeyName(name: string): { valid: boolean; error?: string } {
+function validateKeyName(
+ name: string,
+ t: (key: string, values?: Record<string, unknown>) => string
+): { valid: boolean; error?: string } {
if (!name || !name.trim()) {
- return { valid: false, error: "Key name is required" };
+ return { valid: false, error: t("keyNameRequired") };
}
if (name.length > MAX_KEY_NAME_LENGTH) {
- return { valid: false, error: `Key name must be ${MAX_KEY_NAME_LENGTH} characters or less` };
+ return { valid: false, error: t("keyNameTooLong", { max: MAX_KEY_NAME_LENGTH }) };
}
// Only allow alphanumeric, spaces, hyphens, underscores
if (!/^[a-zA-Z0-9_\-\s]+$/.test(name)) {
return {
valid: false,
- error: "Key name can only contain letters, numbers, spaces, hyphens, and underscores",
+ error: t("keyNameInvalid"),
};
}
return { valid: true };
@@ -155,10 +158,10 @@ export default function ApiManagerPageClient() {
const handleCreateKey = async () => {
// Validate and sanitize input
const sanitizedName = sanitizeInput(newKeyName);
- const validation = validateKeyName(sanitizedName);
+ const validation = validateKeyName(sanitizedName, t);
if (!validation.valid) {
- setError(validation.error || "Invalid key name");
+ setError(validation.error || t("invalidKeyName"));
return;
}
@@ -179,11 +182,11 @@ export default function ApiManagerPageClient() {
setNewKeyName("");
setShowAddModal(false);
} else {
- setError(data.error || "Failed to create key");
+ setError(data.error || t("failedCreateKey"));
}
} catch (error) {
console.error("Error creating key:", error);
- setError("Failed to create key. Please try again.");
+ setError(t("failedCreateKeyRetry"));
} finally {
setIsSubmitting(false);
}
@@ -192,7 +195,7 @@ export default function ApiManagerPageClient() {
const handleDeleteKey = async (id: string) => {
// Validate ID format to prevent injection
if (!id || typeof id !== "string" || !/^[a-zA-Z0-9_-]+$/.test(id)) {
- setError("Invalid key ID");
+ setError(t("invalidKeyId"));
return;
}
@@ -207,11 +210,11 @@ export default function ApiManagerPageClient() {
setKeys((prev) => prev.filter((k) => k.id !== id));
} else {
const data = await res.json();
- setError(data.error || "Failed to delete key");
+ setError(data.error || t("failedDeleteKey"));
}
} catch (error) {
console.error("Error deleting key:", error);
- setError("Failed to delete key. Please try again.");
+ setError(t("failedDeleteKeyRetry"));
} finally {
setIsSubmitting(false);
}
@@ -228,13 +231,13 @@ export default function ApiManagerPageClient() {
// Validate models array
if (!Array.isArray(allowedModels)) {
- setError("Invalid models selection");
+ setError(t("invalidModelsSelection"));
return;
}
// Limit number of selected models to prevent abuse
if (allowedModels.length > MAX_SELECTED_MODELS) {
- setError(`Cannot select more than ${MAX_SELECTED_MODELS} models`);
+ setError(t("cannotSelectMoreThanModels", { max: MAX_SELECTED_MODELS }));
return;
}
@@ -259,11 +262,11 @@ export default function ApiManagerPageClient() {
setEditingKey(null);
} else {
const data = await res.json();
- setError(data.error || "Failed to update permissions");
+ setError(data.error || t("failedUpdatePermissions"));
}
} catch (error) {
console.error("Error updating permissions:", error);
- setError("Failed to update permissions. Please try again.");
+ setError(t("failedUpdatePermissionsRetry"));
} finally {
setIsSubmitting(false);
}
@@ -276,7 +279,7 @@ export default function ApiManagerPageClient() {
const modelsByProvider = useMemo((): ProviderGroup[] => {
const grouped: Record<string, Model[]> = {};
for (const model of allModels) {
- const provider = model.owned_by || "unknown";
+ const provider = model.owned_by || t("unknownProvider");
if (!grouped[provider]) grouped[provider] = [];
grouped[provider].push(model);
}
@@ -465,7 +468,7 @@ export default function ApiManagerPageClient() {
<button
onClick={() => copy(key.key, key.id)}
className="p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary opacity-0 group-hover:opacity-100 transition-all shrink-0"
- title="Copy masked key"
+ title={t("copyMaskedKey")}
>
<span className="material-symbols-outlined text-[14px]">
{copied === key.id ? "check" : "content_copy"}
@@ -479,8 +482,7 @@ export default function ApiManagerPageClient() {
className="flex items-center gap-1.5 px-2 py-1 rounded-md bg-amber-500/10 text-amber-600 dark:text-amber-400 text-xs font-medium hover:bg-amber-500/20 transition-colors"
>
<span className="material-symbols-outlined text-[14px]">lock</span>
- {key.allowedModels.length}{" "}
- {key.allowedModels.length === 1 ? "model" : "models"}
+ {t("modelsCount", { count: key.allowedModels.length })}
</button>
) : (
<button
@@ -499,7 +501,7 @@ export default function ApiManagerPageClient() {
</span>
{stats?.lastUsed ? (
<span className="text-[10px] text-text-muted">
- Last: {new Date(stats.lastUsed).toLocaleDateString()}
+ {t("lastUsedOn", { date: new Date(stats.lastUsed).toLocaleDateString() })}
</span>
) : (
<span className="text-[10px] text-text-muted italic">{t("neverUsed")}</span>
@@ -512,14 +514,14 @@ export default function ApiManagerPageClient() {
<button
onClick={() => handleOpenPermissions(key)}
className="p-2 hover:bg-primary/10 rounded text-text-muted hover:text-primary opacity-0 group-hover:opacity-100 transition-all"
- title="Edit permissions"
+ title={t("editPermissions")}
>
<span className="material-symbols-outlined text-[18px]">tune</span>
</button>
<button
onClick={() => handleDeleteKey(key.id)}
className="p-2 hover:bg-red-500/10 rounded text-red-500 opacity-0 group-hover:opacity-100 transition-all"
- title="Delete key"
+ title={t("deleteKey")}
>
<span className="material-symbols-outlined text-[18px]">delete</span>
</button>
@@ -628,7 +630,7 @@ export default function ApiManagerPageClient() {
</Button>
</div>
<Button onClick={() => setCreatedKey(null)} fullWidth>
- Done
+ {t("done")}
</Button>
</div>
</Modal>
diff --git a/src/app/(dashboard)/dashboard/providers/[id]/page.tsx b/src/app/(dashboard)/dashboard/providers/[id]/page.tsx
index 43d86e1fed..ca6963e573 100644
--- a/src/app/(dashboard)/dashboard/providers/[id]/page.tsx
+++ b/src/app/(dashboard)/dashboard/providers/[id]/page.tsx
@@ -71,8 +71,8 @@ export default function ProviderDetailPage() {
name:
providerNode.name ||
(providerNode.type === "anthropic-compatible"
- ? "Anthropic Compatible"
- : "OpenAI Compatible"),
+ ? t("anthropicCompatibleName")
+ : t("openaiCompatibleName")),
color: providerNode.type === "anthropic-compatible" ? "#D97757" : "#10A37F",
textIcon: providerNode.type === "anthropic-compatible" ? "AC" : "OC",
apiType: providerNode.apiType,
@@ -391,7 +391,7 @@ export default function ProviderDetailPage() {
...prev,
phase: "error",
status: t("failedFetchModels"),
- error: data.error || "Failed to import models",
+ error: data.error || t("failedImportModels"),
}));
return;
}
@@ -401,7 +401,7 @@ export default function ProviderDetailPage() {
...prev,
phase: "done",
status: t("noModelsFound"),
- logs: ["No models returned from /models endpoint."],
+ logs: [t("noModelsReturnedFromEndpoint")],
}));
return;
}
@@ -410,8 +410,8 @@ export default function ProviderDetailPage() {
...prev,
phase: "importing",
total: fetchedModels.length,
- status: `Importing 0 of ${fetchedModels.length} models...`,
- logs: [`Found ${fetchedModels.length} models. Starting import...`],
+ status: t("importingModelsProgress", { current: 0, total: fetchedModels.length }),
+ logs: [t("foundModelsStartingImport", { count: fetchedModels.length })],
}));
let importedCount = 0;
@@ -425,8 +425,8 @@ export default function ProviderDetailPage() {
setImportProgress((prev) => ({
...prev,
current: i + 1,
- status: `Importing ${i + 1} of ${fetchedModels.length} models...`,
- logs: [...prev.logs, `Importing ${modelId}...`],
+ status: t("importingModelsProgress", { current: i + 1, total: fetchedModels.length }),
+ logs: [...prev.logs, t("importingModelById", { modelId })],
}));
// Save as imported (default) model in the DB
@@ -455,13 +455,13 @@ export default function ProviderDetailPage() {
current: fetchedModels.length,
status:
importedCount > 0
- ? `Successfully imported ${importedCount} model${importedCount === 1 ? "" : "s"}!`
- : "No new models were added (all already exist).",
+ ? t("importSuccessCount", { count: importedCount })
+ : t("noNewModelsAddedExisting"),
logs: [
...prev.logs,
importedCount > 0
- ? `✓ Done! ${importedCount} model${importedCount === 1 ? "" : "s"} imported.`
- : "No new models were added.",
+ ? t("importDoneCount", { count: importedCount })
+ : t("noNewModelsAdded"),
],
importedCount,
}));
@@ -478,7 +478,7 @@ export default function ProviderDetailPage() {
...prev,
phase: "error",
status: t("importFailed"),
- error: error instanceof Error ? error.message : "An unexpected error occurred",
+ error: error instanceof Error ? error.message : t("unexpectedErrorOccurred"),
}));
} finally {
setImportingModels(false);
@@ -509,7 +509,7 @@ export default function ProviderDetailPage() {
...prev,
phase: "done",
status: t("noModelsFound"),
- logs: ["No models returned from /models endpoint."],
+ logs: [t("noModelsReturnedFromEndpoint")],
}));
return;
}
@@ -518,8 +518,8 @@ export default function ProviderDetailPage() {
...prev,
phase: "importing",
total: models.length,
- status: `Importing 0 of ${models.length} models...`,
- logs: [`Found ${models.length} models. Starting import...`],
+ status: t("importingModelsProgress", { current: 0, total: models.length }),
+ logs: [t("foundModelsStartingImport", { count: models.length })],
}));
let importedCount = 0;
@@ -531,8 +531,8 @@ export default function ProviderDetailPage() {
setImportProgress((prev) => ({
...prev,
current: i + 1,
- status: `Importing ${i + 1} of ${models.length} models...`,
- logs: [...prev.logs, `Importing ${modelId}...`],
+ status: t("importingModelsProgress", { current: i + 1, total: models.length }),
+ logs: [...prev.logs, t("importingModelById", { modelId })],
}));
const added = await processModel(model);
@@ -545,13 +545,13 @@ export default function ProviderDetailPage() {
current: models.length,
status:
importedCount > 0
- ? `Successfully imported ${importedCount} model${importedCount === 1 ? "" : "s"}!`
- : "No new models were added.",
+ ? t("importSuccessCount", { count: importedCount })
+ : t("noNewModelsAdded"),
logs: [
...prev.logs,
importedCount > 0
- ? `✓ Done! ${importedCount} model${importedCount === 1 ? "" : "s"} imported.`
- : "No new models were added.",
+ ? t("importDoneCount", { count: importedCount })
+ : t("noNewModelsAdded"),
],
importedCount,
}));
@@ -567,7 +567,7 @@ export default function ProviderDetailPage() {
...prev,
phase: "error",
status: t("importFailed"),
- error: error instanceof Error ? error.message : "An unexpected error occurred",
+ error: error instanceof Error ? error.message : t("unexpectedErrorOccurred"),
}));
}
};
@@ -754,7 +754,7 @@ export default function ProviderDetailPage() {
<h1 className="text-3xl font-semibold tracking-tight">{providerInfo.name}</h1>
)}
<p className="text-text-muted">
- {connections.length} connection{connections.length === 1 ? "" : "s"}
+ {t("connectionCountLabel", { count: connections.length })}
</p>
</div>
</div>
@@ -777,10 +777,10 @@ export default function ProviderDetailPage() {
: t("chatCompletions")}{" "}
· {(providerNode.baseUrl || "").replace(/\/$/, "")}/
{isAnthropicCompatible
- ? "messages"
+ ? t("messagesPath")
: providerNode.apiType === "responses"
- ? "responses"
- : "chat/completions"}
+ ? t("responsesPath")
+ : t("chatCompletionsPath")}
</p>
</div>
<div className="flex items-center gap-2">
@@ -790,7 +790,7 @@ export default function ProviderDetailPage() {
onClick={() => setShowAddApiKeyModal(true)}
disabled={connections.length > 0}
>
- Add
+ {t("add")}
</Button>
<Button
size="sm"
@@ -798,7 +798,7 @@ export default function ProviderDetailPage() {
icon="edit"
onClick={() => setShowEditNodeModal(true)}
>
- Edit
+ {t("edit")}
</Button>
<Button
size="sm"
@@ -807,7 +807,9 @@ export default function ProviderDetailPage() {
onClick={async () => {
if (
!confirm(
- `Delete this ${isAnthropicCompatible ? "Anthropic" : "OpenAI"} Compatible node?`
+ t("deleteCompatibleNodeConfirm", {
+ type: isAnthropicCompatible ? t("anthropic") : t("openai"),
+ })
)
)
return;
@@ -823,15 +825,12 @@ export default function ProviderDetailPage() {
}
}}
>
- Delete
+ {t("delete")}
</Button>
</div>
</div>
{connections.length > 0 && (
- <p className="text-sm text-text-muted">
- Only one connection is allowed per compatible node. Add another node if you need more
- connections.
- </p>
+ <p className="text-sm text-text-muted">{t("singleConnectionPerCompatible")}</p>
)}
</Card>
)}
@@ -840,7 +839,7 @@ export default function ProviderDetailPage() {
<Card>
<div className="flex items-center justify-between mb-4">
<div className="flex items-center gap-3">
- <h2 className="text-lg font-semibold">Connections</h2>
+ <h2 className="text-lg font-semibold">{t("connections")}</h2>
{/* Provider-level proxy indicator/button */}
<button
onClick={() =>
@@ -857,14 +856,16 @@ export default function ProviderDetailPage() {
}`}
title={
proxyConfig?.providers?.[providerId]
- ? `Provider proxy: ${proxyConfig.providers[providerId].host || "configured"}`
- : "Configure proxy for all connections of this provider"
+ ? t("providerProxyTitleConfigured", {
+ host: proxyConfig.providers[providerId].host || t("configured"),
+ })
+ : t("providerProxyConfigureHint")
}
>
<span className="material-symbols-outlined text-[14px]">vpn_lock</span>
{proxyConfig?.providers?.[providerId]
- ? proxyConfig.providers[providerId].host || "Provider Proxy"
- : "Provider Proxy"}
+ ? proxyConfig.providers[providerId].host || t("providerProxy")
+ : t("providerProxy")}
</button>
</div>
{!isCompatible && (
@@ -873,7 +874,7 @@ export default function ProviderDetailPage() {
icon="add"
onClick={() => (isOAuth ? setShowOAuthModal(true) : setShowAddApiKeyModal(true))}
>
- Add
+ {t("add")}
</Button>
)}
</div>
@@ -885,14 +886,14 @@ export default function ProviderDetailPage() {
{isOAuth ? "lock" : "key"}
</span>
</div>
- <p className="text-text-main font-medium mb-1">No connections yet</p>
- <p className="text-sm text-text-muted mb-4">Add your first connection to get started</p>
+ <p className="text-text-main font-medium mb-1">{t("noConnectionsYet")}</p>
+ <p className="text-sm text-text-muted mb-4">{t("addFirstConnectionHint")}</p>
{!isCompatible && (
<Button
icon="add"
onClick={() => (isOAuth ? setShowOAuthModal(true) : setShowAddApiKeyModal(true))}
>
- Add Connection
+ {t("addConnection")}
</Button>
)}
</div>
@@ -957,7 +958,7 @@ export default function ProviderDetailPage() {
{/* Models */}
<Card>
- <h2 className="text-lg font-semibold mb-4">Available Models</h2>
+ <h2 className="text-lg font-semibold mb-4">{t("availableModels")}</h2>
{renderModelsSection()}
{/* Custom Models — available for ALL providers */}
@@ -1045,7 +1046,7 @@ export default function ProviderDetailPage() {
setShowImportModal(false);
}
}}
- title="Importing Models"
+ title={t("importingModelsTitle")}
size="md"
closeOnOverlay={false}
showCloseButton={importProgress.phase === "done" || importProgress.phase === "error"}
@@ -1141,7 +1142,7 @@ export default function ProviderDetailPage() {
{/* Auto-reload notice */}
{importProgress.phase === "done" && importProgress.importedCount > 0 && (
<p className="text-xs text-text-muted text-center animate-pulse">
- Page will refresh automatically...
+ {t("pageAutoRefresh")}
</p>
)}
</div>
@@ -1151,6 +1152,7 @@ export default function ProviderDetailPage() {
}
function ModelRow({ model, fullModel, alias, copied, onCopy, onSetAlias, onDeleteAlias }: any) {
+ const t = useTranslations("providers");
return (
<div className="flex items-center gap-2 px-3 py-2 rounded-lg border border-border hover:bg-sidebar/50">
<span className="material-symbols-outlined text-base text-text-muted">smart_toy</span>
@@ -1160,7 +1162,7 @@ function ModelRow({ model, fullModel, alias, copied, onCopy, onSetAlias, onDelet
<button
onClick={() => onCopy(fullModel, `model-${model.id}`)}
className="p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary"
- title="Copy model"
+ title={t("copyModel")}
>
<span className="material-symbols-outlined text-sm">
{copied === `model-${model.id}` ? "check" : "content_copy"}
@@ -1188,6 +1190,7 @@ function PassthroughModelsSection({
onSetAlias,
onDeleteAlias,
}) {
+ const t = useTranslations("providers");
const [newModel, setNewModel] = useState("");
const [adding, setAdding] = useState(false);
@@ -1215,9 +1218,7 @@ function PassthroughModelsSection({
// Check if alias already exists
if (modelAliases[defaultAlias]) {
- alert(
- `Alias "${defaultAlias}" already exists. Please use a different model or edit existing alias.`
- );
+ alert(t("aliasExistsAlert", { alias: defaultAlias }));
return;
}
@@ -1234,15 +1235,13 @@ function PassthroughModelsSection({
return (
<div className="flex flex-col gap-4">
- <p className="text-sm text-text-muted">
- OpenRouter supports any model. Add models and create aliases for quick access.
- </p>
+ <p className="text-sm text-text-muted">{t("openRouterAnyModelHint")}</p>
{/* Add new model */}
<div className="flex items-end gap-2">
<div className="flex-1">
<label htmlFor="new-model-input" className="text-xs text-text-muted mb-1 block">
- Model ID (from OpenRouter)
+ {t("modelIdFromOpenRouter")}
</label>
<input
id="new-model-input"
@@ -1250,12 +1249,12 @@ function PassthroughModelsSection({
value={newModel}
onChange={(e) => setNewModel(e.target.value)}
onKeyDown={(e) => e.key === "Enter" && handleAdd()}
- placeholder="anthropic/claude-3-opus"
+ placeholder={t("openRouterModelPlaceholder")}
className="w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"
/>
</div>
<Button size="sm" icon="add" onClick={handleAdd} disabled={!newModel.trim() || adding}>
- {adding ? "Adding..." : "Add"}
+ {adding ? t("adding") : t("add")}
</Button>
</div>
@@ -1288,6 +1287,7 @@ PassthroughModelsSection.propTypes = {
};
function PassthroughModelRow({ modelId, fullModel, copied, onCopy, onDeleteAlias }) {
+ const t = useTranslations("providers");
return (
<div className="flex items-center gap-3 p-3 rounded-lg border border-border hover:bg-sidebar/50">
<span className="material-symbols-outlined text-base text-text-muted">smart_toy</span>
@@ -1302,7 +1302,7 @@ function PassthroughModelRow({ modelId, fullModel, copied, onCopy, onDeleteAlias
<button
onClick={() => onCopy(fullModel, `model-${modelId}`)}
className="p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary"
- title="Copy model"
+ title={t("copyModel")}
>
<span className="material-symbols-outlined text-sm">
{copied === `model-${modelId}` ? "check" : "content_copy"}
@@ -1315,7 +1315,7 @@ function PassthroughModelRow({ modelId, fullModel, copied, onCopy, onDeleteAlias
<button
onClick={onDeleteAlias}
className="p-1 hover:bg-red-50 rounded text-red-500"
- title="Remove model"
+ title={t("removeModel")}
>
<span className="material-symbols-outlined text-sm">delete</span>
</button>
@@ -1334,6 +1334,7 @@ PassthroughModelRow.propTypes = {
// ============ Custom Models Section (for ALL providers) ============
function CustomModelsSection({ providerId, providerAlias, copied, onCopy }) {
+ const t = useTranslations("providers");
const [customModels, setCustomModels] = useState([]);
const [newModelId, setNewModelId] = useState("");
const [newModelName, setNewModelName] = useState("");
@@ -1401,17 +1402,15 @@ function CustomModelsSection({ providerId, providerAlias, copied, onCopy }) {
<div className="mt-6 pt-6 border-t border-border">
<h3 className="text-sm font-semibold mb-3 flex items-center gap-2">
<span className="material-symbols-outlined text-base text-primary">tune</span>
- Custom Models
+ {t("customModels")}
</h3>
- <p className="text-xs text-text-muted mb-3">
- Add model IDs not in the default list. These will be available for routing.
- </p>
+ <p className="text-xs text-text-muted mb-3">{t("customModelsHint")}</p>
{/* Add form */}
<div className="flex items-end gap-2 mb-3">
<div className="flex-1">
<label htmlFor="custom-model-id" className="text-xs text-text-muted mb-1 block">
- Model ID
+ {t("modelId")}
</label>
<input
id="custom-model-id"
@@ -1419,13 +1418,13 @@ function CustomModelsSection({ providerId, providerAlias, copied, onCopy }) {
value={newModelId}
onChange={(e) => setNewModelId(e.target.value)}
onKeyDown={(e) => e.key === "Enter" && handleAdd()}
- placeholder="e.g. gpt-4.5-turbo"
+ placeholder={t("customModelPlaceholder")}
className="w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"
/>
</div>
<div className="w-40">
<label htmlFor="custom-model-name" className="text-xs text-text-muted mb-1 block">
- Display Name
+ {t("displayName")}
</label>
<input
id="custom-model-name"
@@ -1433,18 +1432,18 @@ function CustomModelsSection({ providerId, providerAlias, copied, onCopy }) {
value={newModelName}
onChange={(e) => setNewModelName(e.target.value)}
onKeyDown={(e) => e.key === "Enter" && handleAdd()}
- placeholder="Optional"
+ placeholder={t("optional")}
className="w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"
/>
</div>
<Button size="sm" icon="add" onClick={handleAdd} disabled={!newModelId.trim() || adding}>
- {adding ? "Adding..." : "Add"}
+ {adding ? t("adding") : t("add")}
</Button>
</div>
{/* List */}
{loading ? (
- <p className="text-xs text-text-muted">Loading...</p>
+ <p className="text-xs text-text-muted">{t("loading")}</p>
) : customModels.length > 0 ? (
<div className="flex flex-col gap-2">
{customModels.map((model) => {
@@ -1465,7 +1464,7 @@ function CustomModelsSection({ providerId, providerAlias, copied, onCopy }) {
<button
onClick={() => onCopy(fullModel, copyKey)}
className="p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary"
- title="Copy model"
+ title={t("copyModel")}
>
<span className="material-symbols-outlined text-sm">
{copied === copyKey ? "check" : "content_copy"}
@@ -1476,7 +1475,7 @@ function CustomModelsSection({ providerId, providerAlias, copied, onCopy }) {
<button
onClick={() => handleRemove(model.id)}
className="p-1 hover:bg-red-50 rounded text-red-500"
- title="Remove custom model"
+ title={t("removeCustomModel")}
>
<span className="material-symbols-outlined text-sm">delete</span>
</button>
@@ -1485,7 +1484,7 @@ function CustomModelsSection({ providerId, providerAlias, copied, onCopy }) {
})}
</div>
) : (
- <p className="text-xs text-text-muted">No custom models added yet.</p>
+ <p className="text-xs text-text-muted">{t("noCustomModels")}</p>
)}
</div>
);
@@ -1510,6 +1509,7 @@ function CompatibleModelsSection({
isAnthropic,
onImportWithProgress,
}) {
+ const t = useTranslations("providers");
const [newModel, setNewModel] = useState("");
const [adding, setAdding] = useState(false);
const [importing, setImporting] = useState(false);
@@ -1543,9 +1543,7 @@ function CompatibleModelsSection({
const modelId = newModel.trim();
const resolvedAlias = resolveAlias(modelId);
if (!resolvedAlias) {
- notify.error(
- "All suggested aliases already exist. Please choose a different model or remove conflicting aliases."
- );
+ notify.error(t("allSuggestedAliasesExist"));
return;
}
@@ -1570,18 +1568,16 @@ function CompatibleModelsSection({
} catch (jsonError) {
console.error("Failed to parse error response from custom model API:", jsonError);
}
- throw new Error(errorData.error?.message || "Failed to save custom model");
+ throw new Error(errorData.error?.message || t("failedSaveCustomModel"));
}
// Only create alias after customModel is saved successfully
await onSetAlias(modelId, resolvedAlias, providerStorageAlias);
setNewModel("");
- notify.success(`Model ${modelId} added successfully`);
+ notify.success(t("modelAddedSuccess", { modelId }));
} catch (error) {
console.error("Error adding model:", error);
- notify.error(
- error instanceof Error ? error.message : "Failed to add model. Please try again."
- );
+ notify.error(error instanceof Error ? error.message : t("failedAddModelTryAgain"));
} finally {
setAdding(false);
}
@@ -1599,7 +1595,7 @@ function CompatibleModelsSection({
async () => {
const res = await fetch(`/api/providers/${activeConnection.id}/models`);
const data = await res.json();
- if (!res.ok) throw new Error(data.error || "Failed to import models");
+ if (!res.ok) throw new Error(data.error || t("failedImportModels"));
return data;
},
// processModel callback
@@ -1622,7 +1618,7 @@ function CompatibleModelsSection({
});
if (!customModelRes.ok) {
- notify.error("Failed to save imported model to custom database");
+ notify.error(t("failedSaveImportedModel"));
return false;
}
@@ -1633,7 +1629,7 @@ function CompatibleModelsSection({
);
} catch (error) {
console.error("Error importing models:", error);
- notify.error("Failed to import models. Please try again.");
+ notify.error(t("failedImportModelsTryAgain"));
} finally {
setImporting(false);
}
@@ -1650,24 +1646,23 @@ function CompatibleModelsSection({
{ method: "DELETE" }
);
if (!res.ok) {
- throw new Error("Failed to remove model from database");
+ throw new Error(t("failedRemoveModelFromDatabase"));
}
// Also delete the alias
await onDeleteAlias(alias);
- notify.success("Model removed successfully");
+ notify.success(t("modelRemovedSuccess"));
} catch (error) {
console.error("Error deleting model:", error);
- notify.error(
- error instanceof Error ? error.message : "Failed to delete model. Please try again."
- );
+ notify.error(error instanceof Error ? error.message : t("failedDeleteModelTryAgain"));
}
};
return (
<div className="flex flex-col gap-4">
<p className="text-sm text-text-muted">
- Add {isAnthropic ? "Anthropic" : "OpenAI"}-compatible models manually or import them from
- the /models endpoint.
+ {t("compatibleModelsDescription", {
+ type: isAnthropic ? t("anthropic") : t("openai"),
+ })}
</p>
<div className="flex items-end gap-2 flex-wrap">
@@ -1676,7 +1671,7 @@ function CompatibleModelsSection({
htmlFor="new-compatible-model-input"
className="text-xs text-text-muted mb-1 block"
>
- Model ID
+ {t("modelId")}
</label>
<input
id="new-compatible-model-input"
@@ -1684,12 +1679,16 @@ function CompatibleModelsSection({
value={newModel}
onChange={(e) => setNewModel(e.target.value)}
onKeyDown={(e) => e.key === "Enter" && handleAdd()}
- placeholder={isAnthropic ? "claude-3-opus-20240229" : "gpt-4o"}
+ placeholder={
+ isAnthropic
+ ? t("anthropicCompatibleModelPlaceholder")
+ : t("openaiCompatibleModelPlaceholder")
+ }
className="w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"
/>
</div>
<Button size="sm" icon="add" onClick={handleAdd} disabled={!newModel.trim() || adding}>
- {adding ? "Adding..." : "Add"}
+ {adding ? t("adding") : t("add")}
</Button>
<Button
size="sm"
@@ -1698,13 +1697,11 @@ function CompatibleModelsSection({
onClick={handleImport}
disabled={!canImport || importing}
>
- {importing ? "Importing..." : "Import from /models"}
+ {importing ? t("importingModels") : t("importFromModels")}
</Button>
</div>
- {!canImport && (
- <p className="text-xs text-text-muted">Add a connection to enable importing models.</p>
- )}
+ {!canImport && <p className="text-xs text-text-muted">{t("addConnectionToImport")}</p>}
{allModels.length > 0 && (
<div className="flex flex-col gap-3">
@@ -1779,16 +1776,16 @@ CooldownTimer.propTypes = {
};
const ERROR_TYPE_LABELS = {
- runtime_error: { label: "Local runtime", variant: "warning" },
- upstream_auth_error: { label: "Upstream auth", variant: "error" },
- auth_missing: { label: "Missing credential", variant: "warning" },
- token_refresh_failed: { label: "Refresh failed", variant: "warning" },
- token_expired: { label: "Token expired", variant: "warning" },
- upstream_rate_limited: { label: "Rate limited", variant: "warning" },
- upstream_unavailable: { label: "Upstream unavailable", variant: "error" },
- network_error: { label: "Network error", variant: "warning" },
- unsupported: { label: "Test unsupported", variant: "default" },
- upstream_error: { label: "Upstream error", variant: "error" },
+ runtime_error: { labelKey: "errorTypeRuntime", variant: "warning" },
+ upstream_auth_error: { labelKey: "errorTypeUpstreamAuth", variant: "error" },
+ auth_missing: { labelKey: "errorTypeMissingCredential", variant: "warning" },
+ token_refresh_failed: { labelKey: "errorTypeRefreshFailed", variant: "warning" },
+ token_expired: { labelKey: "errorTypeTokenExpired", variant: "warning" },
+ upstream_rate_limited: { labelKey: "errorTypeRateLimited", variant: "warning" },
+ upstream_unavailable: { labelKey: "errorTypeUpstreamUnavailable", variant: "error" },
+ network_error: { labelKey: "errorTypeNetworkError", variant: "warning" },
+ unsupported: { labelKey: "errorTypeTestUnsupported", variant: "default" },
+ upstream_error: { labelKey: "errorTypeUpstreamError", variant: "error" },
};
function inferErrorType(connection, isCooldown) {
@@ -1838,11 +1835,11 @@ function inferErrorType(connection, isCooldown) {
return "upstream_error";
}
-function getStatusPresentation(connection, effectiveStatus, isCooldown) {
+function getStatusPresentation(connection, effectiveStatus, isCooldown, t) {
if (connection.isActive === false) {
return {
statusVariant: "default",
- statusLabel: "disabled",
+ statusLabel: t("statusDisabled"),
errorType: null,
errorBadge: null,
errorTextClass: "text-text-muted",
@@ -1852,7 +1849,7 @@ function getStatusPresentation(connection, effectiveStatus, isCooldown) {
if (effectiveStatus === "active" || effectiveStatus === "success") {
return {
statusVariant: "success",
- statusLabel: "connected",
+ statusLabel: t("statusConnected"),
errorType: null,
errorBadge: null,
errorTextClass: "text-text-muted",
@@ -1865,7 +1862,7 @@ function getStatusPresentation(connection, effectiveStatus, isCooldown) {
if (errorType === "runtime_error") {
return {
statusVariant: "warning",
- statusLabel: "runtime issue",
+ statusLabel: t("statusRuntimeIssue"),
errorType,
errorBadge,
errorTextClass: "text-yellow-600 dark:text-yellow-400",
@@ -1880,7 +1877,7 @@ function getStatusPresentation(connection, effectiveStatus, isCooldown) {
) {
return {
statusVariant: "error",
- statusLabel: "auth failed",
+ statusLabel: t("statusAuthFailed"),
errorType,
errorBadge,
errorTextClass: "text-red-500",
@@ -1890,7 +1887,7 @@ function getStatusPresentation(connection, effectiveStatus, isCooldown) {
if (errorType === "upstream_rate_limited") {
return {
statusVariant: "warning",
- statusLabel: "rate limited",
+ statusLabel: t("statusRateLimited"),
errorType,
errorBadge,
errorTextClass: "text-yellow-600 dark:text-yellow-400",
@@ -1900,7 +1897,7 @@ function getStatusPresentation(connection, effectiveStatus, isCooldown) {
if (errorType === "network_error") {
return {
statusVariant: "warning",
- statusLabel: "network issue",
+ statusLabel: t("statusNetworkIssue"),
errorType,
errorBadge,
errorTextClass: "text-yellow-600 dark:text-yellow-400",
@@ -1910,16 +1907,22 @@ function getStatusPresentation(connection, effectiveStatus, isCooldown) {
if (errorType === "unsupported") {
return {
statusVariant: "default",
- statusLabel: "test unsupported",
+ statusLabel: t("statusTestUnsupported"),
errorType,
errorBadge,
errorTextClass: "text-text-muted",
};
}
+ const fallbackStatusMap = {
+ unavailable: t("statusUnavailable"),
+ failed: t("statusFailed"),
+ error: t("statusError"),
+ };
+
return {
statusVariant: "error",
- statusLabel: effectiveStatus || "error",
+ statusLabel: fallbackStatusMap[effectiveStatus] || effectiveStatus || t("statusError"),
errorType,
errorBadge,
errorTextClass: "text-red-500",
@@ -1945,8 +1948,9 @@ function ConnectionRow({
proxySource,
proxyHost,
}) {
+ const t = useTranslations("providers");
const displayName = isOAuth
- ? connection.name || connection.email || connection.displayName || "OAuth Account"
+ ? connection.name || connection.email || connection.displayName || t("oauthAccount")
: connection.name;
// Use useState + useEffect for impure Date.now() to avoid calling during render
@@ -1973,7 +1977,7 @@ function ConnectionRow({
? "active" // Cooldown expired → treat as active
: connection.testStatus;
- const statusPresentation = getStatusPresentation(connection, effectiveStatus, isCooldown);
+ const statusPresentation = getStatusPresentation(connection, effectiveStatus, isCooldown, t);
const rateLimitEnabled = !!connection.rateLimitProtection;
return (
@@ -2012,7 +2016,7 @@ function ConnectionRow({
)}
{statusPresentation.errorBadge && connection.isActive !== false && (
<Badge variant={statusPresentation.errorBadge.variant} size="sm">
- {statusPresentation.errorBadge.label}
+ {t(statusPresentation.errorBadge.labelKey)}
</Badge>
)}
{connection.lastError && connection.isActive !== false && (
@@ -2025,7 +2029,9 @@ function ConnectionRow({
)}
<span className="text-xs text-text-muted">#{connection.priority}</span>
{connection.globalPriority && (
- <span className="text-xs text-text-muted">Auto: {connection.globalPriority}</span>
+ <span className="text-xs text-text-muted">
+ {t("autoPriority", { priority: connection.globalPriority })}
+ </span>
)}
{/* Rate Limit Protection — inline toggle with label */}
<span className="text-text-muted/30 select-none">|</span>
@@ -2037,13 +2043,11 @@ function ConnectionRow({
: "bg-black/[0.03] dark:bg-white/[0.03] text-text-muted/50 hover:text-text-muted hover:bg-black/[0.06] dark:hover:bg-white/[0.06]"
}`}
title={
- rateLimitEnabled
- ? "Click to disable rate limit protection"
- : "Click to enable rate limit protection"
+ rateLimitEnabled ? t("disableRateLimitProtection") : t("enableRateLimitProtection")
}
>
<span className="material-symbols-outlined text-[13px]">shield</span>
- {rateLimitEnabled ? "Protected" : "Unprotected"}
+ {rateLimitEnabled ? t("rateLimitProtected") : t("rateLimitUnprotected")}
</button>
{hasProxy &&
(() => {
@@ -2055,19 +2059,22 @@ function ConnectionRow({
: "bg-blue-500/15 text-blue-500";
const label =
proxySource === "global"
- ? "Global"
+ ? t("proxySourceGlobal")
: proxySource === "provider"
- ? "Provider"
- : "Key";
+ ? t("proxySourceProvider")
+ : t("proxySourceKey");
return (
<>
<span className="text-text-muted/30 select-none">|</span>
<span
className={`inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-xs font-medium ${colorClass}`}
- title={`Proxy (${label}): ${proxyHost || "configured"}`}
+ title={t("proxyConfiguredBySource", {
+ source: label,
+ host: proxyHost || t("configured"),
+ })}
>
<span className="material-symbols-outlined text-[13px]">vpn_lock</span>
- {proxyHost || "Proxy"}
+ {proxyHost || t("proxy")}
</span>
</>
);
@@ -2084,22 +2091,22 @@ function ConnectionRow({
disabled={connection.isActive === false}
onClick={onRetest}
className="!h-7 !px-2 text-xs"
- title="Retest authentication"
+ title={t("retestAuthentication")}
>
- Retest
+ {t("retest")}
</Button>
<Toggle
size="sm"
checked={connection.isActive ?? true}
onChange={onToggleActive}
- title={(connection.isActive ?? true) ? "Disable connection" : "Enable connection"}
+ title={(connection.isActive ?? true) ? t("disableConnection") : t("enableConnection")}
/>
<div className="flex gap-1 ml-1 opacity-0 group-hover:opacity-100 transition-opacity">
{onReauth && (
<button
onClick={onReauth}
className="p-2 hover:bg-amber-500/10 rounded text-amber-600 hover:text-amber-500"
- title="Re-authenticate this connection"
+ title={t("reauthenticateConnection")}
>
<span className="material-symbols-outlined text-[18px]">passkey</span>
</button>
@@ -2113,7 +2120,7 @@ function ConnectionRow({
<button
onClick={onProxy}
className="p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary"
- title="Proxy config"
+ title={t("proxyConfig")}
>
<span className="material-symbols-outlined text-[18px]">vpn_lock</span>
</button>
@@ -2166,6 +2173,7 @@ function AddApiKeyModal({
onSave,
onClose,
}) {
+ const t = useTranslations("providers");
const [formData, setFormData] = useState({
name: "",
apiKey: "",
@@ -2219,7 +2227,7 @@ function AddApiKeyModal({
}
if (!isValid) {
- setSaveError("API key validation failed. Please check your key and try again.");
+ setSaveError(t("apiKeyValidationFailed"));
return;
}
@@ -2230,7 +2238,7 @@ function AddApiKeyModal({
testStatus: "active",
});
if (error) {
- setSaveError(typeof error === "string" ? error : "Failed to save connection");
+ setSaveError(typeof error === "string" ? error : t("failedSaveConnection"));
}
} finally {
setSaving(false);
@@ -2240,17 +2248,21 @@ function AddApiKeyModal({
if (!provider) return null;
return (
- <Modal isOpen={isOpen} title={`Add ${providerName || provider} API Key`} onClose={onClose}>
+ <Modal
+ isOpen={isOpen}
+ title={t("addProviderApiKeyTitle", { provider: providerName || provider })}
+ onClose={onClose}
+ >
<div className="flex flex-col gap-4">
<Input
- label="Name"
+ label={t("nameLabel")}
value={formData.name}
onChange={(e) => setFormData({ ...formData, name: e.target.value })}
- placeholder="Production Key"
+ placeholder={t("productionKey")}
/>
<div className="flex gap-2">
<Input
- label="API Key"
+ label={t("apiKeyLabel")}
type="password"
value={formData.apiKey}
onChange={(e) => setFormData({ ...formData, apiKey: e.target.value })}
@@ -2262,13 +2274,13 @@ function AddApiKeyModal({
disabled={!formData.apiKey || validating || saving}
variant="secondary"
>
- {validating ? "Checking..." : "Check"}
+ {validating ? t("checking") : t("check")}
</Button>
</div>
</div>
{validationResult && (
<Badge variant={validationResult === "success" ? "success" : "error"}>
- {validationResult === "success" ? "Valid" : "Invalid"}
+ {validationResult === "success" ? t("valid") : t("invalid")}
</Badge>
)}
{saveError && (
@@ -2279,12 +2291,16 @@ function AddApiKeyModal({
{isCompatible && (
<p className="text-xs text-text-muted">
{isAnthropic
- ? `Validation checks ${providerName || "Anthropic Compatible"} by verifying the API key.`
- : `Validation checks ${providerName || "OpenAI Compatible"} via /models on your base URL.`}
+ ? t("validationChecksAnthropicCompatible", {
+ provider: providerName || t("anthropicCompatibleName"),
+ })
+ : t("validationChecksOpenAiCompatible", {
+ provider: providerName || t("openaiCompatibleName"),
+ })}
</p>
)}
<Input
- label="Priority"
+ label={t("priorityLabel")}
type="number"
value={formData.priority}
onChange={(e) =>
@@ -2297,10 +2313,10 @@ function AddApiKeyModal({
fullWidth
disabled={!formData.name || !formData.apiKey || saving}
>
- {saving ? "Saving..." : "Save"}
+ {saving ? t("saving") : t("save")}
</Button>
<Button onClick={onClose} variant="ghost" fullWidth>
- Cancel
+ {t("cancel")}
</Button>
</div>
</div>
@@ -2319,6 +2335,7 @@ AddApiKeyModal.propTypes = {
};
function EditConnectionModal({ isOpen, connection, onSave, onClose }) {
+ const t = useTranslations("providers");
const [formData, setFormData] = useState({
name: "",
priority: 1,
@@ -2360,7 +2377,7 @@ function EditConnectionModal({ isOpen, connection, onSave, onClose }) {
setTestResult({
valid: false,
diagnosis: { type: "network_error" },
- message: "Failed to test connection",
+ message: t("failedTestConnection"),
});
} finally {
setTesting(false);
@@ -2443,23 +2460,23 @@ function EditConnectionModal({ isOpen, connection, onSave, onClose }) {
: null;
return (
- <Modal isOpen={isOpen} title="Edit Connection" onClose={onClose}>
+ <Modal isOpen={isOpen} title={t("editConnection")} onClose={onClose}>
<div className="flex flex-col gap-4">
<Input
- label="Name"
+ label={t("nameLabel")}
value={formData.name}
onChange={(e) => setFormData({ ...formData, name: e.target.value })}
- placeholder={isOAuth ? "Account name" : "Production Key"}
+ placeholder={isOAuth ? t("accountName") : t("productionKey")}
/>
{isOAuth && connection.email && (
<div className="bg-sidebar/50 p-3 rounded-lg">
- <p className="text-sm text-text-muted mb-1">Email</p>
+ <p className="text-sm text-text-muted mb-1">{t("email")}</p>
<p className="font-medium">{connection.email}</p>
</div>
)}
{isOAuth && (
<Input
- label="Health Check (min)"
+ label={t("healthCheckMinutes")}
type="number"
value={formData.healthCheckInterval}
onChange={(e) =>
@@ -2468,11 +2485,11 @@ function EditConnectionModal({ isOpen, connection, onSave, onClose }) {
healthCheckInterval: Math.max(0, Number.parseInt(e.target.value) || 0),
})
}
- hint="Proactive token refresh interval. 0 = disabled."
+ hint={t("healthCheckHint")}
/>
)}
<Input
- label="Priority"
+ label={t("priorityLabel")}
type="number"
value={formData.priority}
onChange={(e) =>
@@ -2483,12 +2500,12 @@ function EditConnectionModal({ isOpen, connection, onSave, onClose }) {
<>
<div className="flex gap-2">
<Input
- label="API Key"
+ label={t("apiKeyLabel")}
type="password"
value={formData.apiKey}
onChange={(e) => setFormData({ ...formData, apiKey: e.target.value })}
- placeholder="Enter new API key"
- hint="Leave blank to keep the current API key."
+ placeholder={t("enterNewApiKey")}
+ hint={t("leaveBlankKeepCurrentApiKey")}
className="flex-1"
/>
<div className="pt-6">
@@ -2497,13 +2514,13 @@ function EditConnectionModal({ isOpen, connection, onSave, onClose }) {
disabled={!formData.apiKey || validating || saving}
variant="secondary"
>
- {validating ? "Checking..." : "Check"}
+ {validating ? t("checking") : t("check")}
</Button>
</div>
</div>
{validationResult && (
<Badge variant={validationResult === "success" ? "success" : "error"}>
- {validationResult === "success" ? "Valid" : "Invalid"}
+ {validationResult === "success" ? t("valid") : t("invalid")}
</Badge>
)}
</>
@@ -2513,15 +2530,15 @@ function EditConnectionModal({ isOpen, connection, onSave, onClose }) {
{!isCompatible && (
<div className="flex items-center gap-3">
<Button onClick={handleTest} variant="secondary" disabled={testing}>
- {testing ? "Testing..." : "Test Connection"}
+ {testing ? t("testing") : t("testConnection")}
</Button>
{testResult && (
<>
<Badge variant={testResult.valid ? "success" : "error"}>
- {testResult.valid ? "Valid" : "Failed"}
+ {testResult.valid ? t("valid") : t("failed")}
</Badge>
{testErrorMeta && (
- <Badge variant={testErrorMeta.variant}>{testErrorMeta.label}</Badge>
+ <Badge variant={testErrorMeta.variant}>{t(testErrorMeta.labelKey)}</Badge>
)}
</>
)}
@@ -2530,10 +2547,10 @@ function EditConnectionModal({ isOpen, connection, onSave, onClose }) {
<div className="flex gap-2">
<Button onClick={handleSubmit} fullWidth disabled={saving}>
- {saving ? "Saving..." : "Save"}
+ {saving ? t("saving") : t("save")}
</Button>
<Button onClick={onClose} variant="ghost" fullWidth>
- Cancel
+ {t("cancel")}
</Button>
</div>
</div>
@@ -2556,6 +2573,7 @@ EditConnectionModal.propTypes = {
};
function EditCompatibleNodeModal({ isOpen, node, onSave, onClose, isAnthropic }) {
+ const t = useTranslations("providers");
const [formData, setFormData] = useState({
name: "",
prefix: "",
@@ -2581,8 +2599,8 @@ function EditCompatibleNodeModal({ isOpen, node, onSave, onClose, isAnthropic })
}, [node, isAnthropic]);
const apiTypeOptions = [
- { value: "chat", label: "Chat Completions" },
- { value: "responses", label: "Responses API" },
+ { value: "chat", label: t("chatCompletions") },
+ { value: "responses", label: t("responsesApi") },
];
const handleSubmit = async () => {
@@ -2629,42 +2647,46 @@ function EditCompatibleNodeModal({ isOpen, node, onSave, onClose, isAnthropic })
return (
<Modal
isOpen={isOpen}
- title={`Edit ${isAnthropic ? "Anthropic" : "OpenAI"} Compatible`}
+ title={t("editCompatibleTitle", { type: isAnthropic ? t("anthropic") : t("openai") })}
onClose={onClose}
>
<div className="flex flex-col gap-4">
<Input
- label="Name"
+ label={t("nameLabel")}
value={formData.name}
onChange={(e) => setFormData({ ...formData, name: e.target.value })}
- placeholder={`${isAnthropic ? "Anthropic" : "OpenAI"} Compatible (Prod)`}
- hint="Required. A friendly label for this node."
+ placeholder={t("compatibleProdPlaceholder", {
+ type: isAnthropic ? t("anthropic") : t("openai"),
+ })}
+ hint={t("nameHint")}
/>
<Input
- label="Prefix"
+ label={t("prefixLabel")}
value={formData.prefix}
onChange={(e) => setFormData({ ...formData, prefix: e.target.value })}
placeholder={isAnthropic ? "ac-prod" : "oc-prod"}
- hint="Required. Used as the provider prefix for model IDs."
+ hint={t("prefixHint")}
/>
{!isAnthropic && (
<Select
- label="API Type"
+ label={t("apiTypeLabel")}
options={apiTypeOptions}
value={formData.apiType}
onChange={(e) => setFormData({ ...formData, apiType: e.target.value })}
/>
)}
<Input
- label="Base URL"
+ label={t("baseUrlLabel")}
value={formData.baseUrl}
onChange={(e) => setFormData({ ...formData, baseUrl: e.target.value })}
placeholder={isAnthropic ? "https://api.anthropic.com/v1" : "https://api.openai.com/v1"}
- hint={`Use the base URL (ending in /v1) for your ${isAnthropic ? "Anthropic" : "OpenAI"}-compatible API.`}
+ hint={t("compatibleBaseUrlHint", {
+ type: isAnthropic ? t("anthropic") : t("openai"),
+ })}
/>
<div className="flex gap-2">
<Input
- label="API Key (for Check)"
+ label={t("apiKeyForCheck")}
type="password"
value={checkKey}
onChange={(e) => setCheckKey(e.target.value)}
@@ -2676,13 +2698,13 @@ function EditCompatibleNodeModal({ isOpen, node, onSave, onClose, isAnthropic })
disabled={!checkKey || validating || !formData.baseUrl.trim()}
variant="secondary"
>
- {validating ? "Checking..." : "Check"}
+ {validating ? t("checking") : t("check")}
</Button>
</div>
</div>
{validationResult && (
<Badge variant={validationResult === "success" ? "success" : "error"}>
- {validationResult === "success" ? "Valid" : "Invalid"}
+ {validationResult === "success" ? t("valid") : t("invalid")}
</Badge>
)}
<div className="flex gap-2">
@@ -2693,10 +2715,10 @@ function EditCompatibleNodeModal({ isOpen, node, onSave, onClose, isAnthropic })
!formData.name.trim() || !formData.prefix.trim() || !formData.baseUrl.trim() || saving
}
>
- {saving ? "Saving..." : "Save"}
+ {saving ? t("saving") : t("save")}
</Button>
<Button onClick={onClose} variant="ghost" fullWidth>
- Cancel
+ {t("cancel")}
</Button>
</div>
</div>
diff --git a/src/app/(dashboard)/dashboard/translator/components/TestBenchMode.tsx b/src/app/(dashboard)/dashboard/translator/components/TestBenchMode.tsx
index 339792a944..bf3e9a8498 100644
--- a/src/app/(dashboard)/dashboard/translator/components/TestBenchMode.tsx
+++ b/src/app/(dashboard)/dashboard/translator/components/TestBenchMode.tsx
@@ -19,16 +19,24 @@ import { useAvailableModels } from "../hooks/useAvailableModels";
*/
const SCENARIOS = [
- { id: "simple-chat", name: "Simple Chat", icon: "chat", templateId: "simple-chat" },
- { id: "tool-calling", name: "Tool Calling", icon: "build", templateId: "tool-calling" },
- { id: "multi-turn", name: "Multi-turn", icon: "forum", templateId: "multi-turn" },
- { id: "thinking", name: "Thinking", icon: "psychology", templateId: "thinking" },
- { id: "system-prompt", name: "System Prompt", icon: "settings", templateId: "system-prompt" },
- { id: "streaming", name: "Streaming", icon: "stream", templateId: "streaming" },
+ { id: "simple-chat", icon: "chat", templateId: "simple-chat" },
+ { id: "tool-calling", icon: "build", templateId: "tool-calling" },
+ { id: "multi-turn", icon: "forum", templateId: "multi-turn" },
+ { id: "thinking", icon: "psychology", templateId: "thinking" },
+ { id: "system-prompt", icon: "settings", templateId: "system-prompt" },
+ { id: "streaming", icon: "stream", templateId: "streaming" },
];
export default function TestBenchMode() {
const t = useTranslations("translator");
+ const scenarioLabels: Record<string, string> = {
+ "simple-chat": t("scenarioSimpleChat"),
+ "tool-calling": t("scenarioToolCalling"),
+ "multi-turn": t("scenarioMultiTurn"),
+ thinking: t("scenarioThinking"),
+ "system-prompt": t("scenarioSystemPrompt"),
+ streaming: t("scenarioStreaming"),
+ };
const [sourceFormat, setSourceFormat] = useState("claude");
const { provider, setProvider, providerOptions } = useProviderOptions("openai");
const { model, setModel, availableModels, pickModelForFormat } = useAvailableModels();
@@ -53,7 +61,7 @@ export default function TestBenchMode() {
if (!body) {
setResults((prev) => ({
...prev,
- [scenario.id]: { status: "error", error: "No template for this format", latency: 0 },
+ [scenario.id]: { status: "error", error: t("noTemplateForFormat"), latency: 0 },
}));
return;
}
@@ -76,7 +84,7 @@ export default function TestBenchMode() {
...prev,
[scenario.id]: {
status: "error",
- error: `Translation failed: ${translateData.error}`,
+ error: t("translationFailed", { error: translateData.error }),
latency: Date.now() - start,
},
}));
@@ -151,12 +159,7 @@ export default function TestBenchMode() {
</span>
<div>
<p className="font-medium text-text-main mb-0.5">{t("compatibilityTester")}</p>
- <p>
- Run predefined scenarios (Simple Chat, Tool Calling, etc.) to verify translation and
- provider compatibility. Select a source format and target provider, then run all tests
- to see a compatibility percentage. Use this to find which features work across
- providers.
- </p>
+ <p>{t("testBenchDescription")}</p>
</div>
</div>
@@ -166,7 +169,7 @@ export default function TestBenchMode() {
<div className="flex flex-col sm:flex-row items-end gap-4">
<div className="flex-1 w-full">
<label className="block text-xs font-medium text-text-muted mb-1.5 uppercase tracking-wider">
- Source Format
+ {t("source")}
</label>
<Select
value={sourceFormat}
@@ -186,7 +189,7 @@ export default function TestBenchMode() {
</div>
<div className="flex-1 w-full">
<label className="block text-xs font-medium text-text-muted mb-1.5 uppercase tracking-wider">
- Target Provider
+ {t("targetProvider")}
</label>
<Select
value={provider}
@@ -203,12 +206,12 @@ export default function TestBenchMode() {
loading={runningAll}
disabled={runningAll}
>
- Run All Tests
+ {t("runAllTests")}
</Button>
</div>
<div>
<label className="block text-xs font-medium text-text-muted mb-1.5 uppercase tracking-wider">
- Model
+ {t("model")}
</label>
<div className="relative">
<input
@@ -216,7 +219,7 @@ export default function TestBenchMode() {
value={model}
onChange={(e) => setModel(e.target.value)}
list="testbench-model-suggestions"
- placeholder="Select or type a model name..."
+ placeholder={t("modelPlaceholder")}
className="w-full bg-bg-subtle border border-border rounded-lg px-3 py-2 text-sm text-text-main placeholder:text-text-muted focus:outline-none focus:border-primary transition-colors"
/>
<datalist id="testbench-model-suggestions">
@@ -247,10 +250,10 @@ export default function TestBenchMode() {
</div>
<div className="flex items-center gap-3 text-xs text-text-muted">
<span className="flex items-center gap-1">
- <span className="size-2 rounded-full bg-green-500" /> {passCount} passed
+ <span className="size-2 rounded-full bg-green-500" /> {passCount} {t("passed")}
</span>
<span className="flex items-center gap-1">
- <span className="size-2 rounded-full bg-red-500" /> {failCount} failed
+ <span className="size-2 rounded-full bg-red-500" /> {failCount} {t("failed")}
</span>
</div>
</div>
@@ -299,7 +302,9 @@ export default function TestBenchMode() {
</span>
</div>
<div>
- <p className="text-sm font-medium text-text-main">{scenario.name}</p>
+ <p className="text-sm font-medium text-text-main">
+ {scenarioLabels[scenario.id] || scenario.id}
+ </p>
<p className="text-[10px] text-text-muted uppercase">
{srcMeta.label} →{" "}
{providerOptions.find((o) => o.value === provider)?.label || provider}
@@ -315,9 +320,9 @@ export default function TestBenchMode() {
>
{result.status === "pass" ? (
<div className="flex items-center justify-between">
- <span>✅ Passed</span>
+ <span>{t("passedIconLabel")}</span>
<span className="text-text-muted">
- {result.latency}ms • {result.chunks} chunks
+ {result.latency}ms • {result.chunks} {t("chunks")}
</span>
</div>
) : (
@@ -337,7 +342,7 @@ export default function TestBenchMode() {
disabled={isRunning || runningAll}
className="w-full"
>
- {isRunning ? "Running..." : result ? "Re-run" : "Run Test"}
+ {isRunning ? t("running") : result ? t("reRun") : t("runTest")}
</Button>
</div>
</Card>
diff --git a/src/app/(dashboard)/dashboard/usage/components/BudgetTab.tsx b/src/app/(dashboard)/dashboard/usage/components/BudgetTab.tsx
index d0af6f71db..a527c95a73 100644
--- a/src/app/(dashboard)/dashboard/usage/components/BudgetTab.tsx
+++ b/src/app/(dashboard)/dashboard/usage/components/BudgetTab.tsx
@@ -100,13 +100,13 @@ export default function BudgetTab() {
}),
});
if (res.ok) {
- notify.success("Budget limits saved");
+ notify.success(t("budgetSaved"));
await fetchBudget();
} else {
- notify.error("Failed to save budget");
+ notify.error(t("budgetSaveFailed"));
}
} catch {
- notify.error("Failed to save budget");
+ notify.error(t("budgetSaveFailed"));
} finally {
setSaving(false);
}
@@ -116,7 +116,7 @@ export default function BudgetTab() {
return (
<div className="flex items-center gap-2 text-text-muted p-8 animate-pulse">
<span className="material-symbols-outlined text-[20px]">account_balance_wallet</span>
- Loading budget data...
+ {t("loadingBudgetData")}
</div>
);
}
@@ -125,8 +125,8 @@ export default function BudgetTab() {
return (
<EmptyState
icon="vpn_key"
- title="No API Keys"
- description="Add API keys first to set up budget limits."
+ title={t("noApiKeysTitle")}
+ description={t("noApiKeysDescription")}
/>
);
}
@@ -166,7 +166,7 @@ export default function BudgetTab() {
{/* Current Spend */}
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6">
<div className="p-4 rounded-lg border border-border/30 bg-surface/20">
- <p className="text-sm text-text-muted mb-2">Today&apos;s Spend</p>
+ <p className="text-sm text-text-muted mb-2">{t("todaysSpend")}</p>
<p className="text-2xl font-bold text-text-main">${dailyCost.toFixed(2)}</p>
{dailyLimit > 0 && (
<ProgressBar value={dailyCost} max={dailyLimit} warningAt={warnPct} />
@@ -186,35 +186,35 @@ export default function BudgetTab() {
<p className="text-sm font-medium mb-3">{t("setLimits")}</p>
<div className="grid grid-cols-1 md:grid-cols-3 gap-4 mb-4">
<Input
- label="Daily Limit (USD)"
+ label={t("dailyLimitUsd")}
type="number"
step="0.01"
min="0"
- placeholder="e.g. 5.00"
+ placeholder={t("dailyLimitPlaceholder")}
value={form.dailyLimitUsd}
onChange={(e) => setForm({ ...form, dailyLimitUsd: e.target.value })}
/>
<Input
- label="Monthly Limit (USD)"
+ label={t("monthlyLimitUsd")}
type="number"
step="0.01"
min="0"
- placeholder="e.g. 50.00"
+ placeholder={t("monthlyLimitPlaceholder")}
value={form.monthlyLimitUsd}
onChange={(e) => setForm({ ...form, monthlyLimitUsd: e.target.value })}
/>
<Input
- label="Warning Threshold (%)"
+ label={t("warningThresholdPercent")}
type="number"
min="1"
max="100"
- placeholder="80"
+ placeholder={t("warningThresholdPlaceholder")}
value={form.warningThreshold}
onChange={(e) => setForm({ ...form, warningThreshold: e.target.value })}
/>
</div>
<Button variant="primary" onClick={handleSave} loading={saving}>
- Save Limits
+ {t("saveLimits")}
</Button>
</div>
</Card>
@@ -231,8 +231,8 @@ export default function BudgetTab() {
</span>
<span className="text-sm">
{budget.budgetCheck.allowed
- ? `Budget OK — $${(budget.budgetCheck.remaining || 0).toFixed(2)} remaining`
- : "Budget exceeded — requests may be blocked"}
+ ? t("budgetOk", { remaining: (budget.budgetCheck.remaining || 0).toFixed(2) })
+ : t("budgetExceeded")}
</span>
</div>
</Card>
diff --git a/src/app/(dashboard)/dashboard/usage/components/BudgetTelemetryCards.tsx b/src/app/(dashboard)/dashboard/usage/components/BudgetTelemetryCards.tsx
index ab06f2da09..8015101c6f 100644
--- a/src/app/(dashboard)/dashboard/usage/components/BudgetTelemetryCards.tsx
+++ b/src/app/(dashboard)/dashboard/usage/components/BudgetTelemetryCards.tsx
@@ -31,7 +31,7 @@ export default function BudgetTelemetryCards() {
<Card className="p-4">
<h3 className="text-sm font-semibold text-text-muted mb-3 flex items-center gap-2">
<span className="material-symbols-outlined text-[18px]">speed</span>
- Latency
+ {t("latency")}
</h3>
{telemetry ? (
<div className="space-y-2 text-sm">
@@ -61,7 +61,7 @@ export default function BudgetTelemetryCards() {
<Card className="p-4">
<h3 className="text-sm font-semibold text-text-muted mb-3 flex items-center gap-2">
<span className="material-symbols-outlined text-[18px]">cached</span>
- Prompt Cache
+ {t("promptCache")}
</h3>
{cache ? (
<div className="space-y-2 text-sm">
@@ -83,7 +83,7 @@ export default function BudgetTelemetryCards() {
</div>
</div>
) : (
- <p className="text-sm text-text-muted">No data yet</p>
+ <p className="text-sm text-text-muted">{t("noDataYet")}</p>
)}
</Card>
@@ -91,13 +91,15 @@ export default function BudgetTelemetryCards() {
<Card className="p-4">
<h3 className="text-sm font-semibold text-text-muted mb-3 flex items-center gap-2">
<span className="material-symbols-outlined text-[18px]">monitor_heart</span>
- System Health
+ {t("systemHealth")}
</h3>
{policies ? (
<div className="space-y-2 text-sm">
<div className="flex justify-between">
<span className="text-text-muted">{t("circuitBreakers")}</span>
- <span className="font-mono">{policies.circuitBreakers?.length ?? 0} active</span>
+ <span className="font-mono">
+ {t("activeCount", { count: policies.circuitBreakers?.length ?? 0 })}
+ </span>
</div>
<div className="flex justify-between">
<span className="text-text-muted">{t("lockedIPs")}</span>
@@ -105,12 +107,12 @@ export default function BudgetTelemetryCards() {
</div>
{policies.circuitBreakers?.some((cb) => cb.state === "OPEN") && (
<div className="mt-2 px-2 py-1 rounded bg-red-500/10 text-red-400 text-xs">
- ⚠ Open circuit breakers detected
+ {t("openCircuitBreakersDetected")}
</div>
)}
</div>
) : (
- <p className="text-sm text-text-muted">No data yet</p>
+ <p className="text-sm text-text-muted">{t("noDataYet")}</p>
)}
</Card>
</div>
diff --git a/src/app/(dashboard)/dashboard/usage/components/EvalsTab.tsx b/src/app/(dashboard)/dashboard/usage/components/EvalsTab.tsx
index ed302f91db..0f05698286 100644
--- a/src/app/(dashboard)/dashboard/usage/components/EvalsTab.tsx
+++ b/src/app/(dashboard)/dashboard/usage/components/EvalsTab.tsx
@@ -18,35 +18,35 @@ import { useNotificationStore } from "@/store/notificationStore";
const STRATEGIES = [
{
name: "contains",
- label: "Contains",
+ labelKey: "evalsStrategyContainsLabel",
icon: "search",
color: "text-sky-400",
bg: "bg-sky-500/10",
- description: "Checks if the response contains a specific text (case-insensitive)",
+ descriptionKey: "evalsStrategyContainsDescription",
},
{
name: "exact",
- label: "Exact Match",
+ labelKey: "evalsStrategyExactLabel",
icon: "check_circle",
color: "text-emerald-400",
bg: "bg-emerald-500/10",
- description: "Response must be an exact character-for-character match",
+ descriptionKey: "evalsStrategyExactDescription",
},
{
name: "regex",
- label: "Regex Pattern",
+ labelKey: "evalsStrategyRegexLabel",
icon: "code",
color: "text-amber-400",
bg: "bg-amber-500/10",
- description: "Matches response against a regular expression pattern",
+ descriptionKey: "evalsStrategyRegexDescription",
},
{
name: "custom",
- label: "Custom Function",
+ labelKey: "evalsStrategyCustomLabel",
icon: "tune",
color: "text-violet-400",
bg: "bg-violet-500/10",
- description: "Uses a custom function for advanced evaluation logic",
+ descriptionKey: "evalsStrategyCustomDescription",
},
];
@@ -129,7 +129,7 @@ export default function EvalsTab() {
const handleRunEval = async (suite) => {
const cases = suite.cases || [];
if (cases.length === 0) {
- notify.warning("No test cases defined for this suite");
+ notify.warning(t("notifyNoTestCases"));
return;
}
@@ -161,16 +161,22 @@ export default function EvalsTab() {
if (data.summary) {
const { passed, failed, total } = data.summary;
if (failed === 0) {
- notify.success(`All ${total} cases passed ✅`, `Eval: ${suite.name}`);
+ notify.success(
+ t("notifyAllCasesPassed", { total }),
+ t("notifyEvalTitle", { name: suite.name || suite.id })
+ );
} else {
- notify.warning(`${passed}/${total} passed, ${failed} failed`, `Eval: ${suite.name}`);
+ notify.warning(
+ t("notifySomeCasesFailed", { passed, total, failed }),
+ t("notifyEvalTitle", { name: suite.name || suite.id })
+ );
}
}
// Auto-expand to show results
setExpanded(suite.id);
} catch {
- notify.error("Eval run failed");
+ notify.error(t("notifyEvalRunFailed"));
} finally {
setRunning(null);
setProgress({ current: 0, total: 0 });
@@ -197,7 +203,7 @@ export default function EvalsTab() {
return (
<div className="flex items-center gap-2 text-text-muted p-8 animate-pulse">
<span className="material-symbols-outlined text-[20px]">science</span>
- Loading eval suites...
+ {t("evalsLoading")}
</div>
);
}
@@ -209,51 +215,51 @@ export default function EvalsTab() {
<HeroSection />
<EmptyState
icon="science"
- title="No Eval Suites Found"
- description="Eval suites can be defined via the API or in code. They test model outputs against expected results using strategies like contains, regex, exact match, and custom functions."
+ title={t("noEvalSuitesFound")}
+ description={t("noEvalSuitesDescription")}
/>
</div>
);
}
const RESULT_COLUMNS = [
- { key: "caseName", label: "Case" },
- { key: "status", label: "Status" },
- { key: "durationMs", label: "Latency" },
- { key: "details", label: "Details" },
+ { key: "caseName", label: t("columnCase") },
+ { key: "status", label: t("columnStatus") },
+ { key: "durationMs", label: t("columnLatency") },
+ { key: "details", label: t("columnDetails") },
];
return (
<div className="flex flex-col gap-6">
{/* Hero Section */}
- <HeroSection />
+ <HeroSection t={t} />
{/* Stats Bar */}
<div className="grid grid-cols-2 md:grid-cols-4 gap-3">
<Card className="px-4 py-3 text-center">
<span className="text-xs text-text-muted uppercase font-semibold tracking-wide">
- Suites
+ {t("statsSuites")}
</span>
<div className="text-2xl font-bold mt-1 text-violet-400">{suites.length}</div>
</Card>
<Card className="px-4 py-3 text-center">
<span className="text-xs text-text-muted uppercase font-semibold tracking-wide">
- Test Cases
+ {t("statsTestCases")}
</span>
<div className="text-2xl font-bold mt-1 text-sky-400">{totalCases}</div>
</Card>
<Card className="px-4 py-3 text-center">
<span className="text-xs text-text-muted uppercase font-semibold tracking-wide">
- Models
+ {t("statsModels")}
</span>
<div className="text-2xl font-bold mt-1 text-emerald-400">{uniqueModels.length}</div>
</Card>
<Card className="px-4 py-3 text-center">
<span className="text-xs text-text-muted uppercase font-semibold tracking-wide">
- Coverage
+ {t("statsCoverage")}
</span>
<div className="text-2xl font-bold mt-1 text-amber-400">
- {STRATEGIES.length} strategies
+ {t("statsStrategiesCount", { count: STRATEGIES.length })}
</div>
</Card>
</div>
@@ -269,10 +275,8 @@ export default function EvalsTab() {
<span className="material-symbols-outlined text-[20px]">help</span>
</div>
<div>
- <h3 className="text-sm font-semibold text-text-main">How It Works</h3>
- <p className="text-xs text-text-muted">
- Learn how evaluations validate your LLM responses
- </p>
+ <h3 className="text-sm font-semibold text-text-main">{t("howItWorks")}</h3>
+ <p className="text-xs text-text-muted">{t("howItWorksSubtitle")}</p>
</div>
</div>
<span
@@ -293,37 +297,28 @@ export default function EvalsTab() {
<span className="text-lg font-bold text-violet-400">1</span>
</div>
<h4 className="text-sm font-semibold text-text-main mb-1">{t("define")}</h4>
- <p className="text-xs text-text-muted">
- Create test cases with input prompts and expected output criteria using strategies
- like contains, regex, or exact match.
- </p>
+ <p className="text-xs text-text-muted">{t("defineStepDescription")}</p>
</div>
<div className="flex flex-col items-center text-center p-4 rounded-lg bg-sky-500/5 border border-sky-500/10">
<div className="w-10 h-10 rounded-full bg-sky-500/20 flex items-center justify-center mb-3">
<span className="text-lg font-bold text-sky-400">2</span>
</div>
<h4 className="text-sm font-semibold text-text-main mb-1">{t("run")}</h4>
- <p className="text-xs text-text-muted">
- Execute test cases against your LLM endpoints through OmniRoute. Each case is sent
- as a real API request.
- </p>
+ <p className="text-xs text-text-muted">{t("runStepDescription")}</p>
</div>
<div className="flex flex-col items-center text-center p-4 rounded-lg bg-emerald-500/5 border border-emerald-500/10">
<div className="w-10 h-10 rounded-full bg-emerald-500/20 flex items-center justify-center mb-3">
<span className="text-lg font-bold text-emerald-400">3</span>
</div>
<h4 className="text-sm font-semibold text-text-main mb-1">{t("evaluate")}</h4>
- <p className="text-xs text-text-muted">
- Responses are compared against expected criteria. See pass/fail for each case with
- latency metrics and detailed feedback.
- </p>
+ <p className="text-xs text-text-muted">{t("evaluateStepDescription")}</p>
</div>
</div>
{/* Evaluation Strategies */}
<div className="mt-6">
<h4 className="text-xs font-semibold text-text-muted uppercase tracking-wide mb-3">
- Evaluation Strategies
+ {t("evaluationStrategies")}
</h4>
<div className="grid grid-cols-1 md:grid-cols-2 gap-2">
{STRATEGIES.map((s) => (
@@ -335,8 +330,10 @@ export default function EvalsTab() {
{s.icon}
</span>
<div>
- <span className={`text-xs font-mono font-semibold ${s.color}`}>{s.name}</span>
- <p className="text-xs text-text-muted mt-0.5">{s.description}</p>
+ <span className={`text-xs font-mono font-semibold ${s.color}`}>
+ {t(s.labelKey)}
+ </span>
+ <p className="text-xs text-text-muted mt-0.5">{t(s.descriptionKey)}</p>
</div>
</div>
))}
@@ -347,7 +344,7 @@ export default function EvalsTab() {
{uniqueModels.length > 0 && (
<div className="mt-6">
<h4 className="text-xs font-semibold text-text-muted uppercase tracking-wide mb-3">
- Models Under Test
+ {t("modelsUnderTest")}
</h4>
<div className="flex flex-wrap gap-2">
{uniqueModels.map((m) => (
@@ -373,16 +370,14 @@ export default function EvalsTab() {
</div>
<div>
<h3 className="text-lg font-semibold">{t("evalSuites")}</h3>
- <p className="text-xs text-text-muted">
- Click a suite to view test cases, then run to evaluate your LLM endpoints
- </p>
+ <p className="text-xs text-text-muted">{t("evalSuitesHint")}</p>
</div>
</div>
<FilterBar
searchValue={search}
onSearchChange={setSearch}
- placeholder="Search suites..."
+ placeholder={t("searchSuitesPlaceholder")}
filters={[]}
activeFilters={{}}
onFilterChange={() => {}}
@@ -427,12 +422,12 @@ export default function EvalsTab() {
: "bg-red-500/10 text-red-400"
}`}
>
- {suiteResult.summary.passRate}% pass
+ {suiteResult.summary.passRate}% {t("passSuffix")}
</span>
)}
</div>
<p className="text-xs text-text-muted">
- {caseCount} case{caseCount !== 1 ? "s" : ""}
+ {t("casesCount", { count: caseCount })}
{suite.description && <span className="ml-1">— {suite.description}</span>}
</p>
{suiteModels.length > 0 && (
@@ -475,7 +470,9 @@ export default function EvalsTab() {
loading={isRunning}
disabled={isRunning}
>
- {isRunning ? `Running ${progress.current}/${progress.total}...` : "Run Eval"}
+ {isRunning
+ ? t("runningProgress", { current: progress.current, total: progress.total })
+ : t("runEval")}
</Button>
</div>
</div>
@@ -499,11 +496,14 @@ export default function EvalsTab() {
>
{suiteResult.summary.passRate}%
</span>
- <span className="text-xs text-text-muted">pass rate</span>
+ <span className="text-xs text-text-muted">{t("passRate")}</span>
</div>
<div className="text-xs text-text-muted">
- {suiteResult.summary.passed} passed · {suiteResult.summary.failed}{" "}
- failed · {suiteResult.summary.total} total
+ {t("summaryBreakdown", {
+ passed: suiteResult.summary.passed,
+ failed: suiteResult.summary.failed,
+ total: suiteResult.summary.total,
+ })}
</div>
{/* Visual pass/fail bar */}
<div className="flex-1 h-2 bg-black/10 dark:bg-white/10 rounded-full overflow-hidden">
@@ -531,9 +531,9 @@ export default function EvalsTab() {
renderCell={(row, col) => {
if (col.key === "status") {
return row.passed ? (
- <span className="text-emerald-400">✅ Passed</span>
+ <span className="text-emerald-400">{t("passedIconLabel")}</span>
) : (
- <span className="text-red-400">❌ Failed</span>
+ <span className="text-red-400">{t("failedIconLabel")}</span>
);
}
if (col.key === "durationMs") {
@@ -549,11 +549,13 @@ export default function EvalsTab() {
<span className="text-text-muted text-xs truncate max-w-[300px] block">
{String(
(d as any).searchTerm
- ? `Contains: "${(d as any).searchTerm}"`
+ ? t("detailsContains", { term: (d as any).searchTerm })
: (d as any).pattern
- ? `Regex: ${(d as any).pattern}`
+ ? t("detailsRegex", { pattern: (d as any).pattern })
: (d as any).expected
- ? `Expected: "${String((d as any).expected).slice(0, 50)}"`
+ ? t("detailsExpected", {
+ expected: String((d as any).expected).slice(0, 50),
+ })
: row.error || "—"
)}
</span>
@@ -566,7 +568,7 @@ export default function EvalsTab() {
);
}}
maxHeight="400px"
- emptyMessage="No results yet"
+ emptyMessage={t("noResultsYet")}
/>
</>
) : (
@@ -577,15 +579,15 @@ export default function EvalsTab() {
checklist
</span>
<span className="text-xs text-text-muted font-medium">
- Test Cases ({(suite.cases || []).length})
+ {t("testCasesCount", { count: (suite.cases || []).length })}
</span>
</div>
<DataTable
columns={[
- { key: "name", label: "Case" },
- { key: "model", label: "Model" },
- { key: "strategy", label: "Strategy" },
- { key: "expected", label: "Expected" },
+ { key: "name", label: t("columnCase") },
+ { key: "model", label: t("columnModel") },
+ { key: "strategy", label: t("columnStrategy") },
+ { key: "expected", label: t("columnExpected") },
]}
data={(suite.cases || []).map((c, i) => ({
id: c.id || i,
@@ -630,12 +632,11 @@ export default function EvalsTab() {
);
}}
maxHeight="400px"
- emptyMessage="No test cases defined"
+ emptyMessage={t("noTestCasesDefined")}
/>
<p className="text-xs text-text-muted mt-3 flex items-center gap-1.5">
<span className="material-symbols-outlined text-[14px]">info</span>
- Click &quot;Run Eval&quot; to execute all cases against your LLM endpoint.
- Each test sends a real request through OmniRoute.
+ {t("runEvalHint")}
</p>
</>
)}
@@ -651,7 +652,7 @@ export default function EvalsTab() {
}
// ── Hero Section Component ─────────────────────────────────────────────
-function HeroSection() {
+function HeroSection({ t }: { t: (key: string, values?: Record<string, unknown>) => string }) {
return (
<Card className="p-0 overflow-hidden">
<div
@@ -668,31 +669,28 @@ function HeroSection() {
<div className="flex-1">
<h2 className="text-xl font-bold text-text-main mb-1">{t("modelEvals")}</h2>
<p className="text-sm text-text-muted leading-relaxed max-w-2xl">
- Test and validate your LLM endpoints by running predefined evaluation suites. Each
- suite contains test cases that send real prompts through OmniRoute and compare
- responses against expected criteria — helping you detect regressions, compare models,
- and ensure response quality across providers.
+ {t("evalsHeroDescription")}
</p>
<div className="flex flex-wrap items-center gap-4 mt-4">
<div className="flex items-center gap-1.5 text-xs text-text-muted">
<span className="material-symbols-outlined text-[16px] text-emerald-400">
verified
</span>
- Quality Validation
+ {t("qualityValidation")}
</div>
<div className="flex items-center gap-1.5 text-xs text-text-muted">
<span className="material-symbols-outlined text-[16px] text-sky-400">compare</span>
- Model Comparison
+ {t("modelComparison")}
</div>
<div className="flex items-center gap-1.5 text-xs text-text-muted">
<span className="material-symbols-outlined text-[16px] text-amber-400">
bug_report
</span>
- Regression Detection
+ {t("regressionDetection")}
</div>
<div className="flex items-center gap-1.5 text-xs text-text-muted">
<span className="material-symbols-outlined text-[16px] text-violet-400">speed</span>
- Latency Benchmarks
+ {t("latencyBenchmarks")}
</div>
</div>
</div>
diff --git a/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.tsx b/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.tsx
index b119328e42..cba84c90b7 100644
--- a/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.tsx
+++ b/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.tsx
@@ -23,15 +23,15 @@ const PROVIDER_CONFIG = {
};
const TIER_FILTERS = [
- { key: "all", label: "All" },
- { key: "enterprise", label: "Enterprise" },
- { key: "team", label: "Team" },
- { key: "business", label: "Business" },
- { key: "ultra", label: "Ultra" },
- { key: "pro", label: "Pro" },
- { key: "plus", label: "Plus" },
- { key: "free", label: "Free" },
- { key: "unknown", label: "Unknown" },
+ { key: "all", labelKey: "tierAll" },
+ { key: "enterprise", labelKey: "tierEnterprise" },
+ { key: "team", labelKey: "tierTeam" },
+ { key: "business", labelKey: "tierBusiness" },
+ { key: "ultra", labelKey: "tierUltra" },
+ { key: "pro", labelKey: "tierPro" },
+ { key: "plus", labelKey: "tierPlus" },
+ { key: "free", labelKey: "tierFree" },
+ { key: "unknown", labelKey: "tierUnknown" },
];
// Short model display names for quota bars
@@ -291,7 +291,7 @@ export default function ProviderLimits() {
<span className="material-symbols-outlined text-[64px] opacity-15">cloud_off</span>
<h3 className="mt-4 text-lg font-semibold text-text-main">{t("noProviders")}</h3>
<p className="mt-2 text-sm text-text-muted max-w-[400px] mx-auto">
- Connect to providers with OAuth to track your API quota limits and usage.
+ {t("connectProvidersForQuota")}
</p>
</div>
</Card>
@@ -305,10 +305,9 @@ export default function ProviderLimits() {
<div className="flex items-center gap-3">
<h2 className="text-lg font-semibold text-text-main m-0">{t("providerLimits")}</h2>
<span className="text-[13px] text-text-muted">
- {visibleConnections.length} account{visibleConnections.length !== 1 ? "s" : ""}
- {visibleConnections.length !== sortedConnections.length
- ? ` (filtered from ${sortedConnections.length})`
- : ""}
+ {t("accountsCount", { count: visibleConnections.length })}
+ {visibleConnections.length !== sortedConnections.length &&
+ ` ${t("filteredFromCount", { count: sortedConnections.length })}`}
</span>
</div>
@@ -325,7 +324,7 @@ export default function ProviderLimits() {
>
{autoRefresh ? "toggle_on" : "toggle_off"}
</span>
- Auto-refresh
+ {t("autoRefresh")}
{autoRefresh && <span className="text-xs text-text-muted">({countdown}s)</span>}
</button>
@@ -339,7 +338,7 @@ export default function ProviderLimits() {
>
refresh
</span>
- Refresh All
+ {t("refreshAll")}
</button>
</div>
</div>
@@ -362,7 +361,7 @@ export default function ProviderLimits() {
color: active ? "var(--primary, #E54D5E)" : "var(--text-muted)",
}}
>
- <span>{tier.label}</span>
+ <span>{t(tier.labelKey)}</span>
<span className="opacity-85">{tierCounts[tier.key] || 0}</span>
</button>
);
@@ -417,7 +416,13 @@ export default function ProviderLimits() {
{conn.name || config.label}
</div>
<div className="flex items-center gap-1.5 mt-0.5">
- <span title={quota?.plan ? `Raw plan: ${quota.plan}` : "No plan from provider"}>
+ <span
+ title={
+ quota?.plan
+ ? t("rawPlanWithValue", { plan: quota.plan })
+ : t("noPlanFromProvider")
+ }
+ >
<Badge variant={tierMeta.variant} size="sm" dot>
{tierMeta.label}
</Badge>
@@ -434,7 +439,7 @@ export default function ProviderLimits() {
<span className="material-symbols-outlined animate-spin text-[14px]">
progress_activity
</span>
- Loading...
+ {t("loadingQuotas")}
</div>
) : error ? (
<div className="flex items-center gap-1.5 text-xs text-red-500">
@@ -514,7 +519,7 @@ export default function ProviderLimits() {
<button
onClick={() => refreshProvider(conn.id, conn.provider)}
disabled={isLoading}
- title="Refresh quota"
+ title={t("refreshQuota")}
className="p-1 rounded-md border-none bg-transparent cursor-pointer disabled:cursor-not-allowed disabled:opacity-30 opacity-60 hover:opacity-100 flex items-center justify-center transition-opacity duration-150"
>
<span
@@ -530,8 +535,11 @@ export default function ProviderLimits() {
{visibleConnections.length === 0 && (
<div className="py-6 px-4 text-center text-text-muted text-[13px]">
- No accounts found for tier filter{" "}
- <strong>{TIER_FILTERS.find((t) => t.key === tierFilter)?.label || tierFilter}</strong>.
+ {t("noAccountsForTierFilter")}{" "}
+ <strong>
+ {t(TIER_FILTERS.find((tier) => tier.key === tierFilter)?.labelKey || "tierUnknown")}
+ </strong>
+ .
</div>
)}
</div>
diff --git a/src/app/(dashboard)/dashboard/usage/components/RateLimitStatus.tsx b/src/app/(dashboard)/dashboard/usage/components/RateLimitStatus.tsx
index 538da33729..5484d5e102 100644
--- a/src/app/(dashboard)/dashboard/usage/components/RateLimitStatus.tsx
+++ b/src/app/(dashboard)/dashboard/usage/components/RateLimitStatus.tsx
@@ -7,6 +7,7 @@ import { Card } from "@/shared/components";
export default function RateLimitStatus() {
const t = useTranslations("usage");
+ const tc = useTranslations("common");
const [data, setData] = useState({ lockouts: [], cacheStats: null });
const [loading, setLoading] = useState(true);
@@ -27,9 +28,9 @@ export default function RateLimitStatus() {
}, [load]);
const formatMs = (ms) => {
- if (ms < 1000) return `${ms}ms`;
- if (ms < 60000) return `${Math.ceil(ms / 1000)}s`;
- return `${Math.ceil(ms / 60000)}m`;
+ if (ms < 1000) return t("durationMillisecondsShort", { value: ms });
+ if (ms < 60000) return t("durationSecondsShort", { value: Math.ceil(ms / 1000) });
+ return t("durationMinutesShort", { value: Math.ceil(ms / 60000) });
};
return (
@@ -43,12 +44,12 @@ export default function RateLimitStatus() {
</span>
</div>
<div className="flex-1">
- <h3 className="text-lg font-semibold">Model Lockouts</h3>
- <p className="text-sm text-text-muted">Per-model rate limit locks • Auto-refresh 10s</p>
+ <h3 className="text-lg font-semibold">{t("modelLockouts")}</h3>
+ <p className="text-sm text-text-muted">{t("lockoutsAutoRefreshHint")}</p>
</div>
{data.lockouts.length > 0 && (
<span className="px-2.5 py-1 rounded-full text-xs font-semibold bg-orange-500/10 text-orange-400 border border-orange-500/20">
- {data.lockouts.length} locked
+ {t("lockedCount", { count: data.lockouts.length })}
</span>
)}
</div>
@@ -75,14 +76,21 @@ export default function RateLimitStatus() {
<div>
<p className="text-sm font-medium">{lock.model}</p>
<p className="text-xs text-text-muted">
- Account:{" "}
- <span className="font-mono">{lock.accountId?.slice(0, 12) || "N/A"}</span>
- {lock.reason && <> — {lock.reason}</>}
+ {t("account")}:{" "}
+ <span className="font-mono">
+ {lock.accountId?.slice(0, 12) || tc("none")}
+ </span>
+ {lock.reason && (
+ <>
+ {t("reasonSeparator")}
+ {lock.reason}
+ </>
+ )}
</p>
</div>
</div>
<span className="text-xs font-mono tabular-nums text-orange-400">
- {formatMs(lock.remainingMs)} left
+ {t("timeLeft", { time: formatMs(lock.remainingMs) })}
</span>
</div>
))}
diff --git a/src/app/(dashboard)/dashboard/usage/components/SessionsTab.tsx b/src/app/(dashboard)/dashboard/usage/components/SessionsTab.tsx
index d4df091c1a..24b781dd66 100644
--- a/src/app/(dashboard)/dashboard/usage/components/SessionsTab.tsx
+++ b/src/app/(dashboard)/dashboard/usage/components/SessionsTab.tsx
@@ -27,9 +27,9 @@ export default function SessionsTab() {
}, [loadSessions]);
const formatAge = (ms) => {
- if (ms < 60000) return `${Math.floor(ms / 1000)}s`;
- if (ms < 3600000) return `${Math.floor(ms / 60000)}m`;
- return `${Math.floor(ms / 3600000)}h`;
+ if (ms < 60000) return t("durationSecondsShort", { value: Math.floor(ms / 1000) });
+ if (ms < 3600000) return t("durationMinutesShort", { value: Math.floor(ms / 60000) });
+ return t("durationHoursShort", { value: Math.floor(ms / 3600000) });
};
return (
@@ -42,9 +42,7 @@ export default function SessionsTab() {
</div>
<div className="flex-1">
<h3 className="text-lg font-semibold">{t("activeSessions")}</h3>
- <p className="text-sm text-text-muted">
- Tracked via request fingerprinting • Auto-refresh 5s
- </p>
+ <p className="text-sm text-text-muted">{t("sessionsTrackedHint")}</p>
</div>
<div className="flex items-center gap-2">
<span className="flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-cyan-500/10 border border-cyan-500/20">
@@ -102,7 +100,7 @@ export default function SessionsTab() {
{s.connectionId.slice(0, 10)}
</span>
) : (
- <span className="text-text-muted/40">—</span>
+ <span className="text-text-muted/40">{t("notAvailableSymbol")}</span>
)}
</td>
</tr>
diff --git a/src/app/(dashboard)/dashboard/usage/page.tsx b/src/app/(dashboard)/dashboard/usage/page.tsx
index 69727c0b39..51626bdc8c 100644
--- a/src/app/(dashboard)/dashboard/usage/page.tsx
+++ b/src/app/(dashboard)/dashboard/usage/page.tsx
@@ -1,17 +1,20 @@
"use client";
+import { useTranslations } from "next-intl";
+
import { useState } from "react";
import { RequestLoggerV2, ProxyLogger, SegmentedControl } from "@/shared/components";
export default function UsagePage() {
+ const t = useTranslations("usage");
const [activeTab, setActiveTab] = useState("logs");
return (
<div className="flex flex-col gap-6">
<SegmentedControl
options={[
- { value: "logs", label: "Logger" },
- { value: "proxy-logs", label: "Proxy" },
+ { value: "logs", label: t("loggerTab") },
+ { value: "proxy-logs", label: t("proxyTab") },
]}
value={activeTab}
onChange={setActiveTab}
diff --git a/src/app/docs/page.tsx b/src/app/docs/page.tsx
index 75b115caac..a5e2881f3a 100644
--- a/src/app/docs/page.tsx
+++ b/src/app/docs/page.tsx
@@ -1,101 +1,76 @@
import Link from "next/link";
+import { useTranslations } from "next-intl";
import { APP_CONFIG } from "@/shared/constants/config";
import { FREE_PROVIDERS, OAUTH_PROVIDERS, APIKEY_PROVIDERS } from "@/shared/constants/providers";
-const endpointRows = [
- {
- path: "/v1/chat/completions",
- method: "POST",
- note: "OpenAI-compatible chat endpoint (default).",
- },
- { path: "/v1/responses", method: "POST", note: "Responses API endpoint (Codex, o-series)." },
- { path: "/v1/models", method: "GET", note: "Model catalog for all connected providers." },
- {
- path: "/v1/audio/transcriptions",
- method: "POST",
- note: "Audio transcription (Deepgram, AssemblyAI).",
- },
- { path: "/v1/images/generations", method: "POST", note: "Image generation (NanoBanana)." },
- { path: "/chat/completions", method: "POST", note: "Rewrite helper for clients without /v1." },
- { path: "/responses", method: "POST", note: "Rewrite helper for Responses without /v1." },
- { path: "/models", method: "GET", note: "Rewrite helper for model discovery without /v1." },
-];
+const ENDPOINT_ROWS = [
+ { path: "/v1/chat/completions", method: "POST", noteKey: "endpointChatNote" },
+ { path: "/v1/responses", method: "POST", noteKey: "endpointResponsesNote" },
+ { path: "/v1/models", method: "GET", noteKey: "endpointModelsNote" },
+ { path: "/v1/audio/transcriptions", method: "POST", noteKey: "endpointAudioNote" },
+ { path: "/v1/images/generations", method: "POST", noteKey: "endpointImagesNote" },
+ { path: "/chat/completions", method: "POST", noteKey: "endpointRewriteChatNote" },
+ { path: "/responses", method: "POST", noteKey: "endpointRewriteResponsesNote" },
+ { path: "/models", method: "GET", noteKey: "endpointRewriteModelsNote" },
+] as const;
-const featureItems = [
- {
- icon: "hub",
- title: "Multi-Provider Routing",
- text: "Route requests to 30+ AI providers through a single OpenAI-compatible endpoint. Supports chat, responses, audio, and image APIs.",
- },
- {
- icon: "layers",
- title: "Combos & Balancing",
- text: "Create model combos with fallback chains and balancing strategies: round-robin, priority, random, least-used, and cost-optimized.",
- },
- {
- icon: "bar_chart",
- title: "Usage & Cost Tracking",
- text: "Real-time token counting, cost calculation per provider/model, and detailed usage breakdown by API key and account.",
- },
- {
- icon: "analytics",
- title: "Analytics Dashboard",
- text: "Visual analytics with charts for requests, tokens, errors, latency, costs, and model popularity over time.",
- },
- {
- icon: "health_and_safety",
- title: "Health Monitoring",
- text: "Live health checks, provider status, circuit breaker states, and automatic rate limit detection with exponential backoff.",
- },
- {
- icon: "terminal",
- title: "CLI Tools",
- text: "Manage IDE configurations, export/import backups, discover codex profiles, and configure settings from the dashboard.",
- },
- {
- icon: "shield",
- title: "Security & Policies",
- text: "API key authentication, IP filtering, prompt injection guard, domain policies, session management, and audit logging.",
- },
- {
- icon: "cloud_sync",
- title: "Cloud Sync",
- text: "Sync your configuration to Cloudflare Workers for remote access with encrypted credentials and automatic failover.",
- },
-];
+const FEATURE_ITEMS = [
+ { icon: "hub", titleKey: "featureRoutingTitle", textKey: "featureRoutingText" },
+ { icon: "layers", titleKey: "featureCombosTitle", textKey: "featureCombosText" },
+ { icon: "bar_chart", titleKey: "featureUsageTitle", textKey: "featureUsageText" },
+ { icon: "analytics", titleKey: "featureAnalyticsTitle", textKey: "featureAnalyticsText" },
+ { icon: "health_and_safety", titleKey: "featureHealthTitle", textKey: "featureHealthText" },
+ { icon: "terminal", titleKey: "featureCliTitle", textKey: "featureCliText" },
+ { icon: "shield", titleKey: "featureSecurityTitle", textKey: "featureSecurityText" },
+ { icon: "cloud_sync", titleKey: "featureCloudSyncTitle", textKey: "featureCloudSyncText" },
+] as const;
-const useCases = [
- {
- title: "Single endpoint for many providers",
- text: "Point clients to one base URL and route by model prefix (for example: gh/, cc/, kr/, openai/).",
- },
- {
- title: "Fallback and model switching with combos",
- text: "Create combo models in Dashboard and keep client config stable while providers rotate internally.",
- },
- {
- title: "Usage, cost and debug visibility",
- text: "Track tokens/cost by provider, account and API key in Usage + Analytics tabs.",
- },
-];
+const USE_CASE_ITEMS = [
+ { titleKey: "useCaseSingleEndpointTitle", textKey: "useCaseSingleEndpointText" },
+ { titleKey: "useCaseFallbackTitle", textKey: "useCaseFallbackText" },
+ { titleKey: "useCaseUsageVisibilityTitle", textKey: "useCaseUsageVisibilityText" },
+] as const;
-const troubleshootingItems = [
- "If the client fails with model routing, use explicit provider/model (for example: gh/gpt-5.1-codex).",
- "If you receive ambiguous model errors, pick a provider prefix instead of a bare model ID.",
- "For GitHub Codex-family models, keep model as gh/<codex-model>; router selects /responses automatically.",
- "Use Dashboard > Providers > Test Connection before testing from IDEs or external clients.",
- "If a provider shows circuit breaker open, wait for the cooldown or check Health page for details.",
- "For OAuth providers, re-authenticate if tokens expire. Check the provider card status indicator.",
-];
+const TROUBLESHOOTING_KEYS = [
+ "troubleshootingModelRouting",
+ "troubleshootingAmbiguousModels",
+ "troubleshootingCodexFamily",
+ "troubleshootingTestConnection",
+ "troubleshootingCircuitBreaker",
+ "troubleshootingOAuth",
+] as const;
+
+const TOC_ITEMS = [
+ { href: "#quick-start", labelKey: "quickStart" },
+ { href: "#features", labelKey: "features" },
+ { href: "#supported-providers", labelKey: "supportedProvidersToc" },
+ { href: "#use-cases", labelKey: "commonUseCases" },
+ { href: "#client-compatibility", labelKey: "clientCompatibility" },
+ { href: "#api-reference", labelKey: "apiReference" },
+ { href: "#model-prefixes", labelKey: "modelPrefixes" },
+ { href: "#troubleshooting", labelKey: "troubleshooting" },
+] as const;
+
+function ProviderTable({
+ title,
+ providers,
+ colorDot,
+}: {
+ title: string;
+ providers: Record<string, any>;
+ colorDot: string;
+}) {
+ const t = useTranslations("docs");
+ const entries = Object.values(providers) as any[];
-function ProviderTable({ title, providers, colorDot }: { title: string; providers: Record<string, any>; colorDot: string }) {
- const entries: any[] = Object.values(providers);
return (
<div className="rounded-lg border border-border bg-bg p-4">
<div className="flex items-center gap-2 mb-3">
<span className={`size-2.5 rounded-full ${colorDot}`} />
<h3 className="font-semibold">{title}</h3>
- <span className="text-xs text-text-muted ml-auto">{entries.length} providers</span>
+ <span className="text-xs text-text-muted ml-auto">
+ {t("providersCount", { count: entries.length })}
+ </span>
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-1 text-sm">
{entries.map((p) => (
@@ -115,6 +90,45 @@ function ProviderTable({ title, providers, colorDot }: { title: string; provider
}
export default function DocsPage() {
+ const t = useTranslations("docs");
+
+ const totalProviders =
+ Object.keys(FREE_PROVIDERS).length +
+ Object.keys(OAUTH_PROVIDERS).length +
+ Object.keys(APIKEY_PROVIDERS).length;
+
+ const endpointRows = ENDPOINT_ROWS.map((row) => ({
+ ...row,
+ note: t(row.noteKey),
+ }));
+
+ const featureItems = FEATURE_ITEMS.map((item) => ({
+ ...item,
+ title: t(item.titleKey),
+ text: t(item.textKey),
+ }));
+
+ const useCases = USE_CASE_ITEMS.map((item) => ({
+ ...item,
+ title: t(item.titleKey),
+ text: t(item.textKey),
+ }));
+
+ const troubleshootingItems = TROUBLESHOOTING_KEYS.map((key) => t(key));
+ const tocItems = TOC_ITEMS.map((item) => ({ ...item, label: t(item.labelKey) }));
+
+ const providerPrefixRows = [
+ ...Object.values(FREE_PROVIDERS).map((p) => ({ ...p, type: "free" as const })),
+ ...Object.values(OAUTH_PROVIDERS).map((p) => ({ ...p, type: "oauth" as const })),
+ ...Object.values(APIKEY_PROVIDERS).map((p) => ({ ...p, type: "apiKey" as const })),
+ ];
+
+ const getProviderTypeLabel = (type: "free" | "oauth" | "apiKey") => {
+ if (type === "free") return t("providerTypeFree");
+ if (type === "oauth") return t("providerTypeOAuth");
+ return t("providerTypeApiKey");
+ };
+
return (
<div className="min-h-screen bg-bg text-text-main">
<div className="mx-auto max-w-6xl px-4 sm:px-6 lg:px-8 py-10 md:py-14 flex flex-col gap-8">
@@ -122,12 +136,13 @@ export default function DocsPage() {
<div className="flex flex-col gap-4 md:flex-row md:items-center md:justify-between">
<div>
<p className="text-xs uppercase tracking-wider text-text-muted">
- Documentation — v{APP_CONFIG.version}
+ {t("documentationVersion", { version: APP_CONFIG.version })}
</p>
- <h1 className="text-3xl md:text-4xl font-bold mt-1">{APP_CONFIG.name} Docs</h1>
+ <h1 className="text-3xl md:text-4xl font-bold mt-1">
+ {APP_CONFIG.name} {t("docsLabel")}
+ </h1>
<p className="text-sm md:text-base text-text-muted mt-2 max-w-3xl">
- AI gateway for multi-provider LLMs. One endpoint for OpenAI, Anthropic, Gemini,
- GitHub Copilot, Claude Code, Cursor, and 20+ more providers.
+ {t("docsHeroDescription")}
</p>
</div>
<div className="flex flex-wrap gap-2">
@@ -135,13 +150,13 @@ export default function DocsPage() {
href="/dashboard"
className="px-3 py-2 rounded-lg border border-border text-sm hover:bg-bg transition-colors"
>
- Open Dashboard
+ {t("openDashboard")}
</Link>
<Link
href="/dashboard/endpoint"
className="px-3 py-2 rounded-lg border border-border text-sm hover:bg-bg transition-colors"
>
- Endpoint Page
+ {t("endpointPage")}
</Link>
<a
href="https://github.com/diegosouzapw/OmniRoute"
@@ -149,7 +164,8 @@ export default function DocsPage() {
rel="noopener noreferrer"
className="px-3 py-2 rounded-lg border border-border text-sm hover:bg-bg transition-colors flex items-center gap-1"
>
- GitHub <span className="material-symbols-outlined text-[14px]">open_in_new</span>
+ {t("github")}{" "}
+ <span className="material-symbols-outlined text-[14px]">open_in_new</span>
</a>
<a
href="https://github.com/diegosouzapw/OmniRoute/issues"
@@ -157,28 +173,18 @@ export default function DocsPage() {
rel="noopener noreferrer"
className="px-3 py-2 rounded-lg border border-border text-sm hover:bg-bg transition-colors"
>
- Report Issue
+ {t("reportIssue")}
</a>
</div>
</div>
</header>
- {/* Table of Contents */}
<nav className="rounded-2xl border border-border bg-bg-subtle p-6">
<h2 className="text-sm font-semibold uppercase tracking-wider text-text-muted mb-3">
- On this page
+ {t("onThisPage")}
</h2>
<div className="grid grid-cols-2 md:grid-cols-4 gap-2 text-sm">
- {[
- { href: "#quick-start", label: "Quick Start" },
- { href: "#features", label: "Features" },
- { href: "#supported-providers", label: "Providers" },
- { href: "#use-cases", label: "Use Cases" },
- { href: "#client-compatibility", label: "Client Compatibility" },
- { href: "#api-reference", label: "API Reference" },
- { href: "#model-prefixes", label: "Model Prefixes" },
- { href: "#troubleshooting", label: "Troubleshooting" },
- ].map((item) => (
+ {tocItems.map((item) => (
<a
key={item.href}
href={item.href}
@@ -192,46 +198,43 @@ export default function DocsPage() {
</nav>
<section id="quick-start" className="rounded-2xl border border-border bg-bg-subtle p-6">
- <h2 className="text-xl font-semibold">Quick Start</h2>
+ <h2 className="text-xl font-semibold">{t("quickStart")}</h2>
<ol className="mt-4 grid grid-cols-1 md:grid-cols-2 gap-3 text-sm">
<li className="rounded-lg border border-border p-3 bg-bg">
- <span className="font-semibold">1. Install & run</span>
+ <span className="font-semibold">{t("quickStartStep1Title")}</span>
<p className="text-text-muted mt-1">
- <code className="px-1 rounded bg-bg-subtle">npx omniroute</code> or clone from
- GitHub and run <code className="px-1 rounded bg-bg-subtle">npm start</code>.
+ {t("quickStartStep1Prefix")}{" "}
+ <code className="px-1 rounded bg-bg-subtle">npx omniroute</code>{" "}
+ {t("quickStartStep1Middle")}{" "}
+ <code className="px-1 rounded bg-bg-subtle">npm start</code>.
</p>
</li>
<li className="rounded-lg border border-border p-3 bg-bg">
- <span className="font-semibold">2. Create API key</span>
- <p className="text-text-muted mt-1">
- Go to Endpoint → Registered Keys. Generate one key per environment.
- </p>
+ <span className="font-semibold">{t("quickStartStep2Title")}</span>
+ <p className="text-text-muted mt-1">{t("quickStartStep2Text")}</p>
</li>
<li className="rounded-lg border border-border p-3 bg-bg">
- <span className="font-semibold">3. Connect providers</span>
- <p className="text-text-muted mt-1">
- Add provider accounts via OAuth login, API key, or free-tier auto-connect.
- </p>
+ <span className="font-semibold">{t("quickStartStep3Title")}</span>
+ <p className="text-text-muted mt-1">{t("quickStartStep3Text")}</p>
</li>
<li className="rounded-lg border border-border p-3 bg-bg">
- <span className="font-semibold">4. Set client base URL</span>
+ <span className="font-semibold">{t("quickStartStep4Title")}</span>
<p className="text-text-muted mt-1">
- Point your IDE or API client to{" "}
- <code className="px-1 rounded bg-bg-subtle">https://&lt;host&gt;/v1</code>. Use
- provider prefix, e.g.{" "}
+ {t("quickStartStep4Prefix")}{" "}
+ <code className="px-1 rounded bg-bg-subtle">https://&lt;host&gt;/v1</code>.{" "}
+ {t("quickStartStep4Suffix")}{" "}
<code className="px-1 rounded bg-bg-subtle">gh/gpt-5.1-codex</code>.
</p>
</li>
</ol>
</section>
- {/* Features */}
<section id="features" className="rounded-2xl border border-border bg-bg-subtle p-6">
- <h2 className="text-xl font-semibold">Features</h2>
+ <h2 className="text-xl font-semibold">{t("features")}</h2>
<div className="mt-4 grid grid-cols-1 md:grid-cols-2 gap-3">
{featureItems.map((item) => (
<article
- key={item.title}
+ key={item.titleKey}
className="rounded-lg border border-border p-4 bg-bg flex gap-3"
>
<span className="material-symbols-outlined text-[20px] text-primary shrink-0 mt-0.5">
@@ -246,40 +249,48 @@ export default function DocsPage() {
</div>
</section>
- {/* Supported Providers */}
<section
id="supported-providers"
className="rounded-2xl border border-border bg-bg-subtle p-6"
>
<div className="flex items-center justify-between mb-4">
<div>
- <h2 className="text-xl font-semibold">Supported Providers</h2>
+ <h2 className="text-xl font-semibold">{t("supportedProviders")}</h2>
<p className="text-sm text-text-muted mt-1">
- {Object.keys(FREE_PROVIDERS).length +
- Object.keys(OAUTH_PROVIDERS).length +
- Object.keys(APIKEY_PROVIDERS).length}{" "}
- providers across three connection types.
+ {t("providersAcrossConnectionTypes", { count: totalProviders })}
</p>
</div>
<Link
href="/dashboard/providers"
className="px-3 py-2 rounded-lg border border-border text-sm hover:bg-bg transition-colors"
>
- Manage Providers
+ {t("manageProviders")}
</Link>
</div>
<div className="grid grid-cols-1 lg:grid-cols-3 gap-3">
- <ProviderTable title="Free Tier" providers={FREE_PROVIDERS} colorDot="bg-green-500" />
- <ProviderTable title="OAuth" providers={OAUTH_PROVIDERS} colorDot="bg-blue-500" />
- <ProviderTable title="API Key" providers={APIKEY_PROVIDERS} colorDot="bg-amber-500" />
+ <ProviderTable
+ title={t("providerTypeFree")}
+ providers={FREE_PROVIDERS}
+ colorDot="bg-green-500"
+ />
+ <ProviderTable
+ title={t("providerTypeOAuth")}
+ providers={OAUTH_PROVIDERS}
+ colorDot="bg-blue-500"
+ />
+ <ProviderTable
+ title={t("providerTypeApiKey")}
+ providers={APIKEY_PROVIDERS}
+ colorDot="bg-amber-500"
+ />
</div>
</section>
<section id="use-cases" className="rounded-2xl border border-border bg-bg-subtle p-6">
- <h2 className="text-xl font-semibold">Common Use Cases</h2>
+ <h2 className="text-xl font-semibold">{t("commonUseCases")}</h2>
<div className="mt-4 grid grid-cols-1 md:grid-cols-3 gap-3">
{useCases.map((item) => (
- <article key={item.title} className="rounded-lg border border-border p-4 bg-bg">
+ <article key={item.titleKey} className="rounded-lg border border-border p-4 bg-bg">
<h3 className="font-semibold">{item.title}</h3>
<p className="text-sm text-text-muted mt-2">{item.text}</p>
</article>
@@ -291,76 +302,79 @@ export default function DocsPage() {
id="client-compatibility"
className="rounded-2xl border border-border bg-bg-subtle p-6"
>
- <h2 className="text-xl font-semibold">Client Compatibility</h2>
+ <h2 className="text-xl font-semibold">{t("clientCompatibility")}</h2>
<div className="mt-4 grid grid-cols-1 md:grid-cols-2 gap-3 text-sm">
<article className="rounded-lg border border-border p-4 bg-bg">
- <h3 className="font-semibold">Cherry Studio</h3>
+ <h3 className="font-semibold">{t("clientCherryStudioTitle")}</h3>
<ul className="mt-2 text-text-muted space-y-1">
<li>
- Base URL:{" "}
+ {t("baseUrlLabel")}:{" "}
<code className="px-1 rounded bg-bg-subtle">https://&lt;host&gt;/v1</code>
</li>
<li>
- Chat endpoint:{" "}
+ {t("chatEndpointLabel")}:{" "}
<code className="px-1 rounded bg-bg-subtle">/chat/completions</code>
</li>
<li>
- Model recommendation: explicit prefix (
+ {t("modelRecommendationLabel")} (
<code className="px-1 rounded bg-bg-subtle">gh/...</code>,{" "}
<code className="px-1 rounded bg-bg-subtle">cc/...</code>)
</li>
</ul>
</article>
<article className="rounded-lg border border-border p-4 bg-bg">
- <h3 className="font-semibold">Codex / GitHub Copilot Models</h3>
+ <h3 className="font-semibold">{t("clientCodexTitle")}</h3>
<ul className="mt-2 text-text-muted space-y-1">
<li>
- Use model IDs with <code className="px-1 rounded bg-bg-subtle">gh/</code> prefix.
+ {t("clientCodexBullet1")} <code className="px-1 rounded bg-bg-subtle">gh/</code>.
</li>
<li>
- Codex-family models auto-route to{" "}
+ {t("clientCodexBullet2")}{" "}
<code className="px-1 rounded bg-bg-subtle">/responses</code>.
</li>
<li>
- Non-Codex models continue on{" "}
+ {t("clientCodexBullet3")}{" "}
<code className="px-1 rounded bg-bg-subtle">/chat/completions</code>.
</li>
</ul>
</article>
<article className="rounded-lg border border-border p-4 bg-bg">
- <h3 className="font-semibold">Cursor IDE</h3>
+ <h3 className="font-semibold">{t("clientCursorTitle")}</h3>
<ul className="mt-2 text-text-muted space-y-1">
<li>
- Use <code className="px-1 rounded bg-bg-subtle">cu/</code> prefix for Cursor
- models.
+ {t("clientCursorBullet1")} <code className="px-1 rounded bg-bg-subtle">cu/</code>{" "}
+ {t("clientCursorBullet1Suffix")}
</li>
- <li>OAuth connection — login from the Providers page.</li>
- <li>Supports both chat and responses endpoints.</li>
+ <li>{t("clientCursorBullet2")}</li>
+ <li>{t("supportsChat")}</li>
</ul>
</article>
<article className="rounded-lg border border-border p-4 bg-bg">
- <h3 className="font-semibold">Claude Code / Antigravity</h3>
+ <h3 className="font-semibold">{t("clientClaudeTitle")}</h3>
<ul className="mt-2 text-text-muted space-y-1">
<li>
- Use <code className="px-1 rounded bg-bg-subtle">cc/</code> (Claude) or{" "}
- <code className="px-1 rounded bg-bg-subtle">ag/</code> (Antigravity) prefix.
+ {t("clientClaudeBullet1Prefix")}{" "}
+ <code className="px-1 rounded bg-bg-subtle">cc/</code>{" "}
+ {t("clientClaudeBullet1Middle")}{" "}
+ <code className="px-1 rounded bg-bg-subtle">ag/</code>{" "}
+ {t("clientClaudeBullet1Suffix")}
</li>
- <li>OAuth connection with automatic token refresh.</li>
- <li>Full streaming support for all models.</li>
+ <li>{t("oauthAutoRefresh")}</li>
+ <li>{t("fullStreaming")}</li>
</ul>
</article>
</div>
</section>
<section id="api-reference" className="rounded-2xl border border-border bg-bg-subtle p-6">
- <h2 className="text-xl font-semibold">API Reference</h2>
+ <h2 className="text-xl font-semibold">{t("apiReference")}</h2>
<div className="mt-4 overflow-x-auto">
<table className="w-full text-sm border-collapse">
<thead>
<tr className="border-b border-border">
- <th className="text-left py-2 pr-4">Method</th>
- <th className="text-left py-2 pr-4">Path</th>
- <th className="text-left py-2">Notes</th>
+ <th className="text-left py-2 pr-4">{t("method")}</th>
+ <th className="text-left py-2 pr-4">{t("path")}</th>
+ <th className="text-left py-2">{t("notes")}</th>
</tr>
</thead>
<tbody>
@@ -380,28 +394,24 @@ export default function DocsPage() {
</div>
</section>
- {/* Model prefixes */}
<section id="model-prefixes" className="rounded-2xl border border-border bg-bg-subtle p-6">
- <h2 className="text-xl font-semibold">Model Prefixes</h2>
+ <h2 className="text-xl font-semibold">{t("modelPrefixes")}</h2>
<p className="text-sm text-text-muted mt-2 mb-4">
- Use the provider prefix before the model name to route to a specific provider. Example:{" "}
- <code className="px-1 rounded bg-bg">gh/gpt-5.1-codex</code> routes to GitHub Copilot.
+ {t("modelPrefixesDescriptionStart")}{" "}
+ <code className="px-1 rounded bg-bg">gh/gpt-5.1-codex</code>{" "}
+ {t("modelPrefixesDescriptionEnd")}
</p>
<div className="overflow-x-auto">
<table className="w-full text-sm border-collapse">
<thead>
<tr className="border-b border-border">
- <th className="text-left py-2 pr-4">Prefix</th>
- <th className="text-left py-2 pr-4">Provider</th>
- <th className="text-left py-2">Type</th>
+ <th className="text-left py-2 pr-4">{t("prefix")}</th>
+ <th className="text-left py-2 pr-4">{t("provider")}</th>
+ <th className="text-left py-2">{t("type")}</th>
</tr>
</thead>
<tbody>
- {[
- ...Object.values(FREE_PROVIDERS).map((p) => ({ ...p, type: "Free" })),
- ...Object.values(OAUTH_PROVIDERS).map((p) => ({ ...p, type: "OAuth" })),
- ...Object.values(APIKEY_PROVIDERS).map((p) => ({ ...p, type: "API Key" })),
- ].map((p) => (
+ {providerPrefixRows.map((p) => (
<tr key={p.id} className="border-b border-border/60">
<td className="py-2 pr-4 font-mono">
<code className="px-1.5 py-0.5 rounded bg-bg">{p.alias}/</code>
@@ -410,23 +420,23 @@ export default function DocsPage() {
<td className="py-2">
<span
className={`inline-flex items-center gap-1 text-xs ${
- p.type === "Free"
+ p.type === "free"
? "text-green-500"
- : p.type === "OAuth"
+ : p.type === "oauth"
? "text-blue-500"
: "text-amber-500"
}`}
>
<span
className={`size-1.5 rounded-full ${
- p.type === "Free"
+ p.type === "free"
? "bg-green-500"
- : p.type === "OAuth"
+ : p.type === "oauth"
? "bg-blue-500"
: "bg-amber-500"
}`}
/>
- {p.type}
+ {getProviderTypeLabel(p.type)}
</span>
</td>
</tr>
@@ -437,7 +447,7 @@ export default function DocsPage() {
</section>
<section id="troubleshooting" className="rounded-2xl border border-border bg-bg-subtle p-6">
- <h2 className="text-xl font-semibold">Troubleshooting</h2>
+ <h2 className="text-xl font-semibold">{t("troubleshooting")}</h2>
<ul className="mt-4 list-disc list-inside text-sm text-text-muted space-y-2">
{troubleshootingItems.map((item) => (
<li key={item}>{item}</li>
diff --git a/src/app/forgot-password/page.tsx b/src/app/forgot-password/page.tsx
index 7aba55439a..d8588918f6 100644
--- a/src/app/forgot-password/page.tsx
+++ b/src/app/forgot-password/page.tsx
@@ -30,16 +30,12 @@ export default function ForgotPasswordPage() {
<span className="material-symbols-outlined text-[20px]">terminal</span>
</div>
<div className="flex-1">
- <h2 className="text-lg font-semibold mb-1">Method 1: CLI Reset</h2>
- <p className="text-sm text-text-muted mb-3">
- Run the following command on the server where OmniRoute is running:
- </p>
+ <h2 className="text-lg font-semibold mb-1">{t("methodCliTitle")}</h2>
+ <p className="text-sm text-text-muted mb-3">{t("methodCliDescription")}</p>
<div className="bg-black/30 rounded-lg p-3 mb-3 font-mono text-sm text-green-400 border border-white/5">
<code>npx omniroute reset-password</code>
</div>
- <p className="text-xs text-text-muted">
- This will prompt you to set a new password. The server must be stopped first.
- </p>
+ <p className="text-xs text-text-muted">{t("methodCliHint")}</p>
</div>
</div>
</Card>
@@ -51,29 +47,26 @@ export default function ForgotPasswordPage() {
<span className="material-symbols-outlined text-[20px]">database</span>
</div>
<div className="flex-1">
- <h2 className="text-lg font-semibold mb-1">Method 2: Manual Reset</h2>
- <p className="text-sm text-text-muted mb-3">
- Delete the password from the database and set a new one on startup:
- </p>
+ <h2 className="text-lg font-semibold mb-1">{t("methodManualTitle")}</h2>
+ <p className="text-sm text-text-muted mb-3">{t("methodManualDescription")}</p>
<ol className="text-sm text-text-muted space-y-2 list-decimal list-inside mb-3">
<li>{t("stopServer")}</li>
<li>
- Set a new password in your{" "}
- <code className="bg-black/30 px-1 rounded text-text-main">.env</code> file:
+ {t("setPasswordInYour")}{" "}
+ <code className="bg-black/30 px-1 rounded text-text-main">.env</code>{" "}
+ {t("fileLabelSuffix")}
<div className="bg-black/30 rounded-lg p-2 mt-1 font-mono text-xs text-green-400 border border-white/5">
- INITIAL_PASSWORD=your_new_password
+ INITIAL_PASSWORD={t("newPasswordPlaceholder")}
</div>
</li>
<li>
- Delete{" "}
+ {t("deleteSettingsFile")}{" "}
<code className="bg-black/30 px-1 rounded text-text-main">
data/settings.json
</code>{" "}
- (or remove the{" "}
- <code className="bg-black/30 px-1 rounded text-text-main">passwordHash</code>{" "}
- field)
+ ({t("orRemovePasswordHashField")})
</li>
- <li>Restart the server — it will use the new password</li>
+ <li>{t("restartServerWithNewPassword")}</li>
</ol>
</div>
</div>
@@ -85,7 +78,7 @@ export default function ForgotPasswordPage() {
className="text-sm text-primary hover:underline inline-flex items-center gap-1"
>
<span className="material-symbols-outlined text-[16px]">arrow_back</span>
- Back to Login
+ {t("backToLogin")}
</Link>
</div>
</div>
diff --git a/src/app/privacy/page.tsx b/src/app/privacy/page.tsx
index 6972a482f2..56bf457640 100644
--- a/src/app/privacy/page.tsx
+++ b/src/app/privacy/page.tsx
@@ -1,11 +1,19 @@
+import type { Metadata } from "next";
import Link from "next/link";
+import { useTranslations } from "next-intl";
+import { getTranslations } from "next-intl/server";
-export const metadata = {
- title: "Privacy Policy | OmniRoute",
- description: "Privacy policy for the OmniRoute AI API proxy router.",
-};
+export async function generateMetadata(): Promise<Metadata> {
+ const t = await getTranslations("legal");
+ return {
+ title: t("privacyMetadataTitle"),
+ description: t("privacyMetadataDescription"),
+ };
+}
export default function PrivacyPage() {
+ const t = useTranslations("legal");
+
return (
<main className="min-h-screen bg-bg text-text-main">
<div className="max-w-3xl mx-auto px-6 py-16">
@@ -14,68 +22,62 @@ export default function PrivacyPage() {
className="inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-8"
>
<span className="material-symbols-outlined text-[18px]">arrow_back</span>
- Back to home
+ {t("backToHome")}
</Link>
- <h1 className="text-3xl font-bold mb-2">Privacy Policy</h1>
- <p className="text-sm text-text-muted mb-10">Last updated: February 13, 2026</p>
+ <h1 className="text-3xl font-bold mb-2">{t("privacyPolicy")}</h1>
+ <p className="text-sm text-text-muted mb-10">
+ {t("lastUpdated", { date: "February 13, 2026" })}
+ </p>
<div className="space-y-8 text-text-muted leading-relaxed">
<section>
<h2 className="text-lg font-semibold text-text-main mb-3">
- 1. Local-First Architecture
+ {t("privacySection1Title")}
</h2>
- <p>
- OmniRoute is designed as a <strong className="text-text-main">local-first</strong>{" "}
- application. All data processing and storage occurs entirely on your machine. There is
- no centralized server collecting your information.
- </p>
+ <p>{t("privacySection1Text")}</p>
</section>
<section>
- <h2 className="text-lg font-semibold text-text-main mb-3">2. Data We Store</h2>
+ <h2 className="text-lg font-semibold text-text-main mb-3">
+ {t("privacySection2Title")}
+ </h2>
<p className="mb-3">
- The following data is stored locally in{" "}
+ {t("privacyDataStoredIn")}{" "}
<code className="text-primary text-sm">~/.omniroute/storage.sqlite</code>:
</p>
<ul className="list-disc pl-6 space-y-2">
<li>
- <strong className="text-text-main">Provider configurations</strong> — connection
- URLs, provider types, and priority settings
+ <strong className="text-text-main">{t("providerConfigurations")}</strong>{" "}
+ {t("listSeparator")} {t("privacyDataProviderConfigurationsDesc")}
</li>
<li>
- <strong className="text-text-main">API keys</strong> — encrypted and stored locally
- for authenticating with AI providers
+ <strong className="text-text-main">{t("apiKeys")}</strong> {t("listSeparator")}{" "}
+ {t("privacyDataApiKeysDesc")}
</li>
<li>
- <strong className="text-text-main">Usage logs</strong> — request counts, token
- usage, model names, timestamps, and response times
+ <strong className="text-text-main">{t("usageLogs")}</strong> {t("listSeparator")}{" "}
+ {t("privacyDataUsageLogsDesc")}
</li>
<li>
- <strong className="text-text-main">Application settings</strong> — theme
- preferences, routing strategy, and combo configurations
+ <strong className="text-text-main">{t("applicationSettings")}</strong>{" "}
+ {t("listSeparator")} {t("privacyDataApplicationSettingsDesc")}
</li>
</ul>
</section>
<section>
- <h2 className="text-lg font-semibold text-text-main mb-3">3. No Telemetry</h2>
- <p>
- OmniRoute does <strong className="text-text-main">not</strong> collect telemetry,
- analytics, or crash reports. No data is sent to us or any third party. Your usage
- patterns, API calls, and configurations remain entirely private.
- </p>
+ <h2 className="text-lg font-semibold text-text-main mb-3">
+ {t("privacySection3Title")}
+ </h2>
+ <p>{t("privacySection3Text")}</p>
</section>
<section>
<h2 className="text-lg font-semibold text-text-main mb-3">
- 4. Third-Party AI Providers
+ {t("privacySection4Title")}
</h2>
- <p>
- When you make API calls through OmniRoute, your requests are forwarded to the AI
- providers you have configured (e.g., OpenAI, Anthropic, Google). These providers have
- their own privacy policies that govern how they handle your data. Please review:
- </p>
+ <p>{t("privacySection4Text")}</p>
<ul className="list-disc pl-6 space-y-2 mt-3">
<li>
<a
@@ -84,7 +86,7 @@ export default function PrivacyPage() {
target="_blank"
rel="noopener noreferrer"
>
- OpenAI Privacy Policy
+ {t("privacyOpenAiPolicy")}
</a>
</li>
<li>
@@ -94,7 +96,7 @@ export default function PrivacyPage() {
target="_blank"
rel="noopener noreferrer"
>
- Anthropic Privacy Policy
+ {t("privacyAnthropicPolicy")}
</a>
</li>
<li>
@@ -104,53 +106,54 @@ export default function PrivacyPage() {
target="_blank"
rel="noopener noreferrer"
>
- Google Privacy Policy
+ {t("privacyGooglePolicy")}
</a>
</li>
</ul>
</section>
<section>
- <h2 className="text-lg font-semibold text-text-main mb-3">5. Cloud Sync (Optional)</h2>
- <p>
- If you enable the optional cloud sync feature, provider configurations and API keys
- may be transmitted to a configured cloud endpoint. This feature is{" "}
- <strong className="text-text-main">disabled by default</strong> and requires explicit
- opt-in.
- </p>
+ <h2 className="text-lg font-semibold text-text-main mb-3">
+ {t("privacySection5Title")}
+ </h2>
+ <p>{t("privacySection5Text")}</p>
</section>
<section>
- <h2 className="text-lg font-semibold text-text-main mb-3">6. Logging</h2>
- <p>Request logs can be configured through the dashboard settings. You can:</p>
+ <h2 className="text-lg font-semibold text-text-main mb-3">
+ {t("privacySection6Title")}
+ </h2>
+ <p>{t("privacyLoggingIntro")}</p>
<ul className="list-disc pl-6 space-y-2 mt-3">
- <li>View and export usage analytics</li>
- <li>Clear usage history at any time</li>
- <li>Configure log retention policies</li>
- <li>Back up and restore your database</li>
+ <li>{t("viewExportAnalytics")}</li>
+ <li>{t("clearHistory")}</li>
+ <li>{t("configureRetention")}</li>
+ <li>{t("backupRestore")}</li>
</ul>
</section>
<section>
- <h2 className="text-lg font-semibold text-text-main mb-3">7. Your Rights</h2>
+ <h2 className="text-lg font-semibold text-text-main mb-3">
+ {t("privacySection7Title")}
+ </h2>
<p>
- Since all data is stored locally, you have full control. You can delete your data at
- any time by removing the <code className="text-primary text-sm">~/.omniroute/</code>{" "}
- directory or using the database backup/restore features in the dashboard.
+ {t("privacySection7TextStart")}{" "}
+ <code className="text-primary text-sm">~/.omniroute/</code>{" "}
+ {t("privacySection7TextEnd")}
</p>
</section>
</div>
<div className="mt-12 pt-8 border-t border-white/[0.06] text-sm text-text-muted">
<p>
- Questions? Visit our{" "}
+ {t("questionsVisit")}{" "}
<a
href="https://github.com/diegosouzapw/OmniRoute"
className="text-primary hover:underline"
target="_blank"
rel="noopener noreferrer"
>
- GitHub repository
+ {t("githubRepository")}
</a>
.
</p>
diff --git a/src/app/terms/page.tsx b/src/app/terms/page.tsx
index cb932892b8..c840d060e0 100644
--- a/src/app/terms/page.tsx
+++ b/src/app/terms/page.tsx
@@ -1,11 +1,19 @@
+import type { Metadata } from "next";
import Link from "next/link";
+import { useTranslations } from "next-intl";
+import { getTranslations } from "next-intl/server";
-export const metadata = {
- title: "Terms of Service | OmniRoute",
- description: "Terms of service for the OmniRoute AI API proxy router.",
-};
+export async function generateMetadata(): Promise<Metadata> {
+ const t = await getTranslations("legal");
+ return {
+ title: t("termsMetadataTitle"),
+ description: t("termsMetadataDescription"),
+ };
+}
export default function TermsPage() {
+ const t = useTranslations("legal");
+
return (
<main className="min-h-screen bg-bg text-text-main">
<div className="max-w-3xl mx-auto px-6 py-16">
@@ -14,95 +22,67 @@ export default function TermsPage() {
className="inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-8"
>
<span className="material-symbols-outlined text-[18px]">arrow_back</span>
- Back to home
+ {t("backToHome")}
</Link>
- <h1 className="text-3xl font-bold mb-2">Terms of Service</h1>
- <p className="text-sm text-text-muted mb-10">Last updated: February 13, 2026</p>
+ <h1 className="text-3xl font-bold mb-2">{t("termsOfService")}</h1>
+ <p className="text-sm text-text-muted mb-10">
+ {t("lastUpdated", { date: "February 13, 2026" })}
+ </p>
<div className="space-y-8 text-text-muted leading-relaxed">
<section>
- <h2 className="text-lg font-semibold text-text-main mb-3">1. Overview</h2>
- <p>
- OmniRoute is a <strong className="text-text-main">local-first</strong> AI API proxy
- router that operates entirely on your machine. It routes requests to multiple AI
- providers with load balancing, failover, and usage tracking.
- </p>
+ <h2 className="text-lg font-semibold text-text-main mb-3">{t("termsSection1Title")}</h2>
+ <p>{t("termsSection1Text")}</p>
</section>
<section>
- <h2 className="text-lg font-semibold text-text-main mb-3">2. User Responsibilities</h2>
+ <h2 className="text-lg font-semibold text-text-main mb-3">{t("termsSection2Title")}</h2>
<ul className="list-disc pl-6 space-y-2">
- <li>
- You are solely responsible for managing your own API keys and credentials for
- third-party AI providers (OpenAI, Anthropic, Google, etc.).
- </li>
- <li>
- You must comply with the terms of service of each AI provider whose API you access
- through OmniRoute.
- </li>
- <li>
- You are responsible for the security of your local OmniRoute installation, including
- setting a password and restricting network access.
- </li>
+ <li>{t("termsResponsibilityApiKeys")}</li>
+ <li>{t("termsResponsibilityCompliance")}</li>
+ <li>{t("termsResponsibilitySecurity")}</li>
</ul>
</section>
<section>
- <h2 className="text-lg font-semibold text-text-main mb-3">3. How It Works</h2>
- <p>
- OmniRoute acts as an intermediary proxy. API calls sent to OmniRoute are translated
- and forwarded to your configured AI providers. OmniRoute does not modify the content
- of your requests or responses beyond the necessary protocol translation.
- </p>
+ <h2 className="text-lg font-semibold text-text-main mb-3">{t("termsSection3Title")}</h2>
+ <p>{t("termsSection3Text")}</p>
</section>
<section>
- <h2 className="text-lg font-semibold text-text-main mb-3">4. Data Handling</h2>
+ <h2 className="text-lg font-semibold text-text-main mb-3">{t("termsSection4Title")}</h2>
<ul className="list-disc pl-6 space-y-2">
+ <li>{t("termsDataStoredLocally")}</li>
+ <li>{t("termsNoTransmission")}</li>
<li>
- All data is stored <strong className="text-text-main">locally</strong> on your
- machine in a SQLite database.
- </li>
- <li>
- OmniRoute does not transmit any data to external servers unless you explicitly
- enable cloud sync features.
- </li>
- <li>
- Usage logs, API keys, and configuration are stored in{" "}
+ {t("termsDataLocationText")}{" "}
<code className="text-primary text-sm">~/.omniroute/</code>.
</li>
</ul>
</section>
<section>
- <h2 className="text-lg font-semibold text-text-main mb-3">5. Disclaimer</h2>
- <p>
- OmniRoute is provided &ldquo;as is&rdquo; without warranty of any kind. We are not
- responsible for any costs incurred through API usage, service disruptions, or data
- loss. Always maintain backups of your configuration.
- </p>
+ <h2 className="text-lg font-semibold text-text-main mb-3">{t("termsSection5Title")}</h2>
+ <p>{t("termsSection5Text")}</p>
</section>
<section>
- <h2 className="text-lg font-semibold text-text-main mb-3">6. Open Source</h2>
- <p>
- OmniRoute is open-source software. You are free to inspect, modify, and distribute it
- under the terms of its license.
- </p>
+ <h2 className="text-lg font-semibold text-text-main mb-3">{t("termsSection6Title")}</h2>
+ <p>{t("termsSection6Text")}</p>
</section>
</div>
<div className="mt-12 pt-8 border-t border-white/[0.06] text-sm text-text-muted">
<p>
- Questions? Visit our{" "}
+ {t("questionsVisit")}{" "}
<a
href="https://github.com/diegosouzapw/OmniRoute"
className="text-primary hover:underline"
target="_blank"
rel="noopener noreferrer"
>
- GitHub repository
+ {t("githubRepository")}
</a>
.
</p>
diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.json
index b2dc696e6f..6909904b7e 100644
--- a/src/i18n/messages/en.json
+++ b/src/i18n/messages/en.json
@@ -209,6 +209,22 @@
"keyNameRequired": "Key name is required",
"keyNameTooLong": "Key name must be {max} characters or less",
"keyNameInvalid": "Key name can only contain letters, numbers, spaces, hyphens, and underscores",
+ "invalidKeyName": "Invalid key name",
+ "failedCreateKey": "Failed to create key",
+ "failedCreateKeyRetry": "Failed to create key. Please try again.",
+ "invalidKeyId": "Invalid key ID",
+ "failedDeleteKey": "Failed to delete key",
+ "failedDeleteKeyRetry": "Failed to delete key. Please try again.",
+ "invalidModelsSelection": "Invalid models selection",
+ "cannotSelectMoreThanModels": "Cannot select more than {max} models",
+ "failedUpdatePermissions": "Failed to update permissions",
+ "failedUpdatePermissionsRetry": "Failed to update permissions. Please try again.",
+ "unknownProvider": "unknown",
+ "copyMaskedKey": "Copy masked key",
+ "modelsCount": "{count, plural, one {# model} other {# models}}",
+ "lastUsedOn": "Last: {date}",
+ "editPermissions": "Edit permissions",
+ "deleteKey": "Delete key",
"model": "{count} model",
"models": "{count} models",
"permissionsTitle": "Permissions: {name}",
@@ -612,7 +628,118 @@
"disableRateLimitProtection": "Click to disable rate limit protection",
"productionKey": "Production Key",
"enterNewApiKey": "Enter new API key",
- "optional": "Optional"
+ "optional": "Optional",
+ "anthropicCompatibleName": "Anthropic Compatible",
+ "openaiCompatibleName": "OpenAI Compatible",
+ "failedImportModels": "Failed to import models",
+ "noModelsReturnedFromEndpoint": "No models returned from /models endpoint.",
+ "importingModelsProgress": "Importing {current} of {total} models...",
+ "foundModelsStartingImport": "Found {count} models. Starting import...",
+ "importingModelById": "Importing {modelId}...",
+ "importSuccessCount": "Successfully imported {count, plural, one {# model} other {# models}}!",
+ "noNewModelsAddedExisting": "No new models were added (all already exist).",
+ "importDoneCount": "✓ Done! {count, plural, one {# model imported.} other {# models imported.}}",
+ "unexpectedErrorOccurred": "An unexpected error occurred",
+ "connectionCountLabel": "{count, plural, one {# connection} other {# connections}}",
+ "messagesPath": "messages",
+ "responsesPath": "responses",
+ "chatCompletionsPath": "chat/completions",
+ "add": "Add",
+ "edit": "Edit",
+ "delete": "Delete",
+ "anthropic": "Anthropic",
+ "openai": "OpenAI",
+ "singleConnectionPerCompatible": "Only one connection is allowed per compatible node. Add another node if you need more connections.",
+ "connections": "Connections",
+ "providerProxyTitleConfigured": "Provider proxy: {host}",
+ "configured": "configured",
+ "providerProxyConfigureHint": "Configure proxy for all connections of this provider",
+ "providerProxy": "Provider Proxy",
+ "noConnectionsYet": "No connections yet",
+ "addFirstConnectionHint": "Add your first connection to get started",
+ "addConnection": "Add Connection",
+ "availableModels": "Available Models",
+ "pageAutoRefresh": "Page will refresh automatically...",
+ "statusDisabled": "disabled",
+ "statusConnected": "connected",
+ "statusRuntimeIssue": "runtime issue",
+ "statusAuthFailed": "auth failed",
+ "statusRateLimited": "rate limited",
+ "statusNetworkIssue": "network issue",
+ "statusTestUnsupported": "test unsupported",
+ "statusUnavailable": "unavailable",
+ "statusFailed": "failed",
+ "statusError": "error",
+ "oauthAccount": "OAuth Account",
+ "errorTypeRuntime": "Local runtime",
+ "errorTypeUpstreamAuth": "Upstream auth",
+ "errorTypeMissingCredential": "Missing credential",
+ "errorTypeRefreshFailed": "Refresh failed",
+ "errorTypeTokenExpired": "Token expired",
+ "errorTypeRateLimited": "Rate limited",
+ "errorTypeUpstreamUnavailable": "Upstream unavailable",
+ "errorTypeNetworkError": "Network error",
+ "errorTypeTestUnsupported": "Test unsupported",
+ "errorTypeUpstreamError": "Upstream error",
+ "proxySourceGlobal": "Global",
+ "proxySourceProvider": "Provider",
+ "proxySourceKey": "Key",
+ "proxyConfiguredBySource": "Proxy ({source}): {host}",
+ "autoPriority": "Auto: {priority}",
+ "proxy": "Proxy",
+ "retestAuthentication": "Retest authentication",
+ "retest": "Retest",
+ "disableConnection": "Disable connection",
+ "enableConnection": "Enable connection",
+ "reauthenticateConnection": "Re-authenticate this connection",
+ "proxyConfig": "Proxy config",
+ "aliasExistsAlert": "Alias \"{alias}\" already exists. Please use a different model or edit existing alias.",
+ "openRouterAnyModelHint": "OpenRouter supports any model. Add models and create aliases for quick access.",
+ "modelIdFromOpenRouter": "Model ID (from OpenRouter)",
+ "openRouterModelPlaceholder": "anthropic/claude-3-opus",
+ "customModels": "Custom Models",
+ "customModelsHint": "Add model IDs not in the default list. These will be available for routing.",
+ "modelId": "Model ID",
+ "customModelPlaceholder": "e.g. gpt-4.5-turbo",
+ "loading": "Loading...",
+ "removeCustomModel": "Remove custom model",
+ "noCustomModels": "No custom models added yet.",
+ "allSuggestedAliasesExist": "All suggested aliases already exist. Please choose a different model or remove conflicting aliases.",
+ "failedSaveCustomModel": "Failed to save custom model",
+ "modelAddedSuccess": "Model {modelId} added successfully",
+ "failedAddModelTryAgain": "Failed to add model. Please try again.",
+ "failedSaveImportedModel": "Failed to save imported model to custom database",
+ "failedImportModelsTryAgain": "Failed to import models. Please try again.",
+ "failedRemoveModelFromDatabase": "Failed to remove model from database",
+ "modelRemovedSuccess": "Model removed successfully",
+ "failedDeleteModelTryAgain": "Failed to delete model. Please try again.",
+ "compatibleModelsDescription": "Add {type}-compatible models manually or import them from the /models endpoint.",
+ "anthropicCompatibleModelPlaceholder": "claude-3-opus-20240229",
+ "openaiCompatibleModelPlaceholder": "gpt-4o",
+ "apiKeyValidationFailed": "API key validation failed. Please check your key and try again.",
+ "addProviderApiKeyTitle": "Add {provider} API Key",
+ "apiKeyLabel": "API Key",
+ "checking": "Checking...",
+ "check": "Check",
+ "valid": "Valid",
+ "invalid": "Invalid",
+ "validationChecksAnthropicCompatible": "Validation checks {provider} by verifying the API key.",
+ "validationChecksOpenAiCompatible": "Validation checks {provider} via /models on your base URL.",
+ "priorityLabel": "Priority",
+ "saving": "Saving...",
+ "save": "Save",
+ "editConnection": "Edit Connection",
+ "accountName": "Account name",
+ "email": "Email",
+ "healthCheckMinutes": "Health Check (min)",
+ "healthCheckHint": "Proactive token refresh interval. 0 = disabled.",
+ "failedTestConnection": "Failed to test connection",
+ "failed": "Failed",
+ "leaveBlankKeepCurrentApiKey": "Leave blank to keep the current API key.",
+ "editCompatibleTitle": "Edit {type} Compatible",
+ "compatibleBaseUrlHint": "Use the base URL (ending in /v1) for your {type}-compatible API.",
+ "apiKeyForCheck": "API Key (for Check)",
+ "compatibleProdPlaceholder": "{type} Compatible (Prod)"
},
"settings": {
"title": "Settings",
@@ -928,9 +1055,19 @@
},
"translator": {
"title": "Translator",
+ "metaTitle": "Translator Playground | OmniRoute",
+ "metaDescription": "Debug, test, and visualize API format translations between providers",
+ "playgroundTitle": "Translator Playground",
+ "playground": "Playground",
"realtime": "Real-Time Translation Activity",
"chatTester": "Chat Tester",
"testBench": "Test Bench",
+ "liveMonitor": "Live Monitor",
+ "modeDescriptionPlayground": "Paste any API request body and see how OmniRoute translates it between provider formats (OpenAI ↔ Claude ↔ Gemini ↔ Responses API)",
+ "modeDescriptionChatTester": "Send real chat requests through OmniRoute and inspect the full round-trip: input, translated request, provider response, and translated output.",
+ "modeDescriptionTestBench": "Run predefined scenarios and compare compatibility across providers and models.",
+ "modeDescriptionLiveMonitor": "Watch translation events in real time as requests flow through OmniRoute.",
+ "modeDescriptionFallback": "Debug, test, and visualize how OmniRoute translates API requests between providers.",
"recentTranslations": "Recent Translations",
"noTranslations": "No translations yet",
"source": "Source",
@@ -939,52 +1076,223 @@
"model": "Model",
"status": "Status",
"latency": "Latency",
+ "totalTranslations": "Total Translations",
+ "successful": "Successful",
+ "errors": "Errors",
+ "avgLatency": "Avg Latency",
+ "liveAutoRefreshing": "Live — Auto-refreshing",
+ "paused": "Paused",
+ "eventsAppearHint": "Translation events appear here as requests flow through OmniRoute. Use any of these methods to generate events:",
+ "chatTesterTab": "Chat Tester tab",
+ "testBenchTab": "Test Bench tab",
+ "externalApiCalls": "External API calls",
+ "ideCliIntegrations": "IDE/CLI integrations",
+ "inMemoryNote": "Note: Events are stored in-memory and reset when the server restarts.",
+ "ok": "OK",
+ "errorShort": "ERR",
"formatConverter": "Format Converter",
+ "formatConverterDescription": "Paste or type a JSON request body. The translator will auto-detect the source format and convert it to the target format. Use this to debug how OmniRoute translates requests between formats (OpenAI ↔ Claude ↔ Gemini ↔ Responses API).",
"input": "Input",
"output": "Output",
+ "auto": "Auto",
+ "swapFormats": "Swap formats",
+ "translateAction": "Translate",
+ "clear": "Clear",
+ "inputPlaceholder": "Paste a request body here or select a template below...",
"exampleTemplates": "Example Templates",
+ "exampleTemplatesHint": "— Click to load",
+ "templateLoadHint": "Template loads the request in {format} format. Change Source Format to load in a different format.",
"compatibilityTester": "Compatibility Tester",
"compatibilityReport": "Compatibility Report",
+ "testBenchDescription": "Run predefined scenarios (Simple Chat, Tool Calling, etc.) to verify translation and provider compatibility. Select a source format and target provider, then run all tests to see a compatibility percentage. Use this to find which features work across providers.",
+ "targetProvider": "Target Provider",
+ "runAllTests": "Run All Tests",
+ "runTest": "Run Test",
+ "reRun": "Re-run",
+ "running": "Running...",
+ "passed": "passed",
+ "failed": "failed",
+ "passedIconLabel": "✅ Passed",
+ "chunks": "chunks",
+ "scenarioSimpleChat": "Simple Chat",
+ "scenarioToolCalling": "Tool Calling",
+ "scenarioMultiTurn": "Multi-turn",
+ "scenarioThinking": "Thinking",
+ "scenarioSystemPrompt": "System Prompt",
+ "scenarioStreaming": "Streaming",
+ "noTemplateForFormat": "No template for this format",
+ "translationFailed": "Translation failed: {error}",
"pipelineDebugger": "Pipeline Debugger",
"translationPipeline": "Translation Pipeline",
- "pipelineVisualization": "Pipeline visualization"
+ "pipelineVisualization": "Pipeline visualization",
+ "pipelineVisualizationHint": "Send a message to see how your request flows through detection → translation → provider call.",
+ "chatTesterDescription": "Send messages as a specific client format and inspect each step of the translation pipeline.",
+ "chatTesterFlow": "Client Request → Format Detection → OpenAI Intermediate → Provider Format → Response",
+ "clickStepToInspect": "Click any step to inspect the data at that stage.",
+ "clientFormat": "Client Format",
+ "provider": "Provider",
+ "modelPlaceholder": "Select or type a model name...",
+ "sendMessageToSeePipeline": "Send a message to see the translation pipeline",
+ "chatMessageHintPrefix": "Your message will be formatted as a",
+ "chatMessageHintSuffix": "request, translated through the pipeline, and sent to the selected provider.",
+ "youWithFormat": "You ({format})",
+ "assistant": "Assistant",
+ "typeMessage": "Type a message...",
+ "send": "Send",
+ "clientRequest": "Client Request",
+ "clientRequestDescription": "The request body as your client would send it",
+ "formatDetected": "Format Detected",
+ "formatDetectedDescription": "OmniRoute auto-detects the API format from the request structure",
+ "openaiIntermediate": "OpenAI Intermediate",
+ "openaiIntermediateDescription": "All formats are first normalized to OpenAI format (the universal bridge)",
+ "providerFormat": "Provider Format",
+ "providerFormatDescription": "OpenAI format is translated to the provider's native format",
+ "providerResponse": "Provider Response",
+ "providerResponseRawDescription": "The raw response from the provider API",
+ "providerResponseSseDescription": "The raw SSE stream from the provider API",
+ "unexpectedError": "An unexpected error occurred",
+ "error": "Error",
+ "errorMessage": "Error: {message}",
+ "requestFailed": "Request failed",
+ "noTextExtracted": "(No text extracted)",
+ "liveMonitorDescriptionPrefix": "Shows translation events as API calls flow through OmniRoute. Events come from the in-memory buffer (resets on restart). Use",
+ "liveMonitorDescriptionSuffix": ", or external API calls to generate events."
},
"usage": {
"title": "Usage",
+ "loggerTab": "Logger",
+ "proxyTab": "Proxy",
"budgetManagement": "Budget Management",
+ "budgetSaved": "Budget limits saved",
+ "budgetSaveFailed": "Failed to save budget",
+ "loadingBudgetData": "Loading budget data...",
+ "noApiKeysTitle": "No API Keys",
+ "noApiKeysDescription": "Add API keys first to set up budget limits.",
"apiKey": "API Key",
+ "todaysSpend": "Today's Spend",
"thisMonth": "This Month",
"setLimits": "Set Limits",
+ "dailyLimitUsd": "Daily Limit (USD)",
+ "monthlyLimitUsd": "Monthly Limit (USD)",
+ "warningThresholdPercent": "Warning Threshold (%)",
+ "dailyLimitPlaceholder": "e.g. 5.00",
+ "monthlyLimitPlaceholder": "e.g. 50.00",
+ "warningThresholdPlaceholder": "80",
+ "saveLimits": "Save Limits",
+ "budgetOk": "Budget OK — ${remaining} remaining",
+ "budgetExceeded": "Budget exceeded — requests may be blocked",
"totalRequests": "Total requests",
"noDataYet": "No data yet",
+ "latency": "Latency",
+ "promptCache": "Prompt Cache",
+ "systemHealth": "System Health",
"entries": "Entries",
+ "activeCount": "{count} active",
+ "openCircuitBreakersDetected": "Open circuit breakers detected",
"hitRate": "Hit Rate",
"hitsMisses": "Hits / Misses",
"circuitBreakers": "Circuit Breakers",
"lockedIPs": "Locked IPs",
+ "lockoutsAutoRefreshHint": "Per-model rate limit locks • Auto-refresh 10s",
+ "lockedCount": "{count, plural, one {# locked} other {# locked}}",
+ "timeLeft": "{time} left",
"howItWorks": "How It Works",
+ "howItWorksSubtitle": "Learn how evaluations validate your LLM responses",
"define": "Define",
+ "defineStepDescription": "Create test cases with input prompts and expected output criteria using strategies like contains, regex, or exact match.",
"run": "Run",
+ "runStepDescription": "Execute test cases against your LLM endpoints through OmniRoute. Each case is sent as a real API request.",
"evaluate": "Evaluate",
+ "evaluateStepDescription": "Responses are compared against expected criteria. See pass/fail for each case with latency metrics and detailed feedback.",
"evalSuites": "Evaluation Suites",
+ "evalSuitesHint": "Click a suite to view test cases, then run to evaluate your LLM endpoints",
+ "evalsLoading": "Loading eval suites...",
+ "noEvalSuitesFound": "No Eval Suites Found",
+ "noEvalSuitesDescription": "Eval suites can be defined via the API or in code. They test model outputs against expected results using strategies like contains, regex, exact match, and custom functions.",
+ "columnCase": "Case",
+ "columnStatus": "Status",
+ "columnLatency": "Latency",
+ "columnDetails": "Details",
+ "columnModel": "Model",
+ "columnStrategy": "Strategy",
+ "columnExpected": "Expected",
+ "statsSuites": "Suites",
+ "statsTestCases": "Test Cases",
+ "statsModels": "Models",
+ "statsCoverage": "Coverage",
+ "statsStrategiesCount": "{count} strategies",
+ "evaluationStrategies": "Evaluation Strategies",
+ "modelsUnderTest": "Models Under Test",
+ "searchSuitesPlaceholder": "Search suites...",
+ "passSuffix": "pass",
+ "casesCount": "{count, plural, one {# case} other {# cases}}",
+ "runEval": "Run Eval",
+ "runningProgress": "Running {current}/{total}...",
+ "passRate": "pass rate",
+ "summaryBreakdown": "{passed} passed · {failed} failed · {total} total",
+ "passedIconLabel": "✅ Passed",
+ "failedIconLabel": "❌ Failed",
+ "detailsContains": "Contains: \"{term}\"",
+ "detailsRegex": "Regex: {pattern}",
+ "detailsExpected": "Expected: \"{expected}\"",
+ "noResultsYet": "No results yet",
+ "testCasesCount": "Test Cases ({count})",
+ "noTestCasesDefined": "No test cases defined",
+ "runEvalHint": "Click \"Run Eval\" to execute all cases against your LLM endpoint. Each test sends a real request through OmniRoute.",
+ "notifyNoTestCases": "No test cases defined for this suite",
+ "notifyAllCasesPassed": "All {total} cases passed ✅",
+ "notifySomeCasesFailed": "{passed}/{total} passed, {failed} failed",
+ "notifyEvalRunFailed": "Eval run failed",
+ "notifyEvalTitle": "Eval: {name}",
"modelEvals": "Model Evaluations",
+ "evalsHeroDescription": "Test and validate your LLM endpoints by running predefined evaluation suites. Each suite contains test cases that send real prompts through OmniRoute and compare responses against expected criteria — helping you detect regressions, compare models, and ensure response quality across providers.",
+ "qualityValidation": "Quality Validation",
+ "modelComparison": "Model Comparison",
+ "regressionDetection": "Regression Detection",
+ "latencyBenchmarks": "Latency Benchmarks",
"modelLockouts": "Model Lockouts",
"noLockouts": "No models currently locked",
"activeSessions": "Active Sessions",
"noSessions": "No active sessions",
"sessionsHint": "Sessions appear as requests flow through the proxy",
+ "sessionsTrackedHint": "Tracked via request fingerprinting • Auto-refresh 5s",
"session": "Session",
"age": "Age",
"requests": "Requests",
"connection": "Connection",
+ "durationMillisecondsShort": "{value}ms",
+ "durationSecondsShort": "{value}s",
+ "durationMinutesShort": "{value}m",
+ "durationHoursShort": "{value}h",
+ "reasonSeparator": " - ",
+ "notAvailableSymbol": "-",
"providerLimits": "Provider Limits",
"noProviders": "No Providers Connected",
+ "connectProvidersForQuota": "Connect to providers with OAuth to track your API quota limits and usage.",
+ "accountsCount": "{count, plural, one {# account} other {# accounts}}",
+ "filteredFromCount": "(filtered from {count})",
+ "autoRefresh": "Auto-refresh",
+ "refreshAll": "Refresh All",
+ "loadingQuotas": "Loading...",
"account": "Account",
"modelQuotas": "Model Quotas",
"lastUsed": "Last Used",
"actions": "Actions",
+ "refreshQuota": "Refresh quota",
+ "rawPlanWithValue": "Raw plan: {plan}",
+ "noPlanFromProvider": "No plan from provider",
"noQuotaData": "No quota data",
- "noQuotaDataAvailable": "No quota data available"
+ "noQuotaDataAvailable": "No quota data available",
+ "noAccountsForTierFilter": "No accounts found for tier filter",
+ "tierAll": "All",
+ "tierEnterprise": "Enterprise",
+ "tierTeam": "Team",
+ "tierBusiness": "Business",
+ "tierUltra": "Ultra",
+ "tierPro": "Pro",
+ "tierPlus": "Plus",
+ "tierFree": "Free",
+ "tierUnknown": "Unknown"
},
"modals": {
"waitingAuth": "Waiting for Authorization",
@@ -1067,6 +1375,18 @@
"authSuccess": "Authorization Successful!",
"copyUrl": "Copy This URL",
"accessDenied": "Access Denied",
+ "methodCliTitle": "Method 1: CLI Reset",
+ "methodCliDescription": "Run the following command on the server where OmniRoute is running:",
+ "methodCliHint": "This will prompt you to set a new password. The server must be stopped first.",
+ "methodManualTitle": "Method 2: Manual Reset",
+ "methodManualDescription": "Delete the password from the database and set a new one on startup:",
+ "setPasswordInYour": "Set a new password in your",
+ "fileLabelSuffix": "file:",
+ "newPasswordPlaceholder": "your_new_password",
+ "deleteSettingsFile": "Delete",
+ "orRemovePasswordHashField": "or remove the passwordHash field",
+ "restartServerWithNewPassword": "Restart the server - it will use the new password",
+ "backToLogin": "Back to Login",
"forgotPassword": "Forgot password?"
},
"landing": {
@@ -1089,6 +1409,7 @@
"quickStart": "Quick Start",
"features": "Features",
"supportedProviders": "Supported Providers",
+ "supportedProvidersToc": "Providers",
"commonUseCases": "Common Use Cases",
"clientCompatibility": "Client Compatibility",
"apiReference": "API Reference",
@@ -1100,7 +1421,87 @@
"troubleshooting": "Troubleshooting",
"supportsChat": "Supports both chat and responses endpoints.",
"oauthAutoRefresh": "OAuth connection with automatic token refresh.",
- "fullStreaming": "Full streaming support for all models."
+ "fullStreaming": "Full streaming support for all models.",
+ "docsLabel": "Docs",
+ "docsHeroDescription": "AI gateway for multi-provider LLMs. One endpoint for OpenAI, Anthropic, Gemini, GitHub Copilot, Claude Code, Cursor, and 20+ more providers.",
+ "openDashboard": "Open Dashboard",
+ "endpointPage": "Endpoint Page",
+ "github": "GitHub",
+ "reportIssue": "Report Issue",
+ "onThisPage": "On this page",
+ "documentationVersion": "Documentation - v{version}",
+ "quickStartStep1Title": "1. Install and run",
+ "quickStartStep1Prefix": "Run",
+ "quickStartStep1Middle": "or clone from GitHub and run",
+ "quickStartStep2Title": "2. Create API key",
+ "quickStartStep2Text": "Go to Endpoint -> Registered Keys. Generate one key per environment.",
+ "quickStartStep3Title": "3. Connect providers",
+ "quickStartStep3Text": "Add provider accounts via OAuth login, API key, or free-tier auto-connect.",
+ "quickStartStep4Title": "4. Set client base URL",
+ "quickStartStep4Prefix": "Point your IDE or API client to",
+ "quickStartStep4Suffix": "Use provider prefix, for example",
+ "featureRoutingTitle": "Multi-Provider Routing",
+ "featureRoutingText": "Route requests to 30+ AI providers through a single OpenAI-compatible endpoint. Supports chat, responses, audio, and image APIs.",
+ "featureCombosTitle": "Combos and Balancing",
+ "featureCombosText": "Create model combos with fallback chains and balancing strategies: round-robin, priority, random, least-used, and cost-optimized.",
+ "featureUsageTitle": "Usage and Cost Tracking",
+ "featureUsageText": "Real-time token counting, cost calculation per provider/model, and detailed usage breakdown by API key and account.",
+ "featureAnalyticsTitle": "Analytics Dashboard",
+ "featureAnalyticsText": "Visual analytics with charts for requests, tokens, errors, latency, costs, and model popularity over time.",
+ "featureHealthTitle": "Health Monitoring",
+ "featureHealthText": "Live health checks, provider status, circuit breaker states, and automatic rate limit detection with exponential backoff.",
+ "featureCliTitle": "CLI Tools",
+ "featureCliText": "Manage IDE configurations, export/import backups, discover codex profiles, and configure settings from the dashboard.",
+ "featureSecurityTitle": "Security and Policies",
+ "featureSecurityText": "API key authentication, IP filtering, prompt injection guard, domain policies, session management, and audit logging.",
+ "featureCloudSyncTitle": "Cloud Sync",
+ "featureCloudSyncText": "Sync your configuration to Cloudflare Workers for remote access with encrypted credentials and automatic failover.",
+ "providersAcrossConnectionTypes": "{count} providers across three connection types.",
+ "manageProviders": "Manage Providers",
+ "providersCount": "{count} providers",
+ "providerTypeFree": "Free Tier",
+ "providerTypeOAuth": "OAuth",
+ "providerTypeApiKey": "API Key",
+ "useCaseSingleEndpointTitle": "Single endpoint for many providers",
+ "useCaseSingleEndpointText": "Point clients to one base URL and route by model prefix (for example: gh/, cc/, kr/, openai/).",
+ "useCaseFallbackTitle": "Fallback and model switching with combos",
+ "useCaseFallbackText": "Create combo models in Dashboard and keep client config stable while providers rotate internally.",
+ "useCaseUsageVisibilityTitle": "Usage, cost and debug visibility",
+ "useCaseUsageVisibilityText": "Track tokens and cost by provider, account, and API key in Usage and Analytics tabs.",
+ "clientCherryStudioTitle": "Cherry Studio",
+ "baseUrlLabel": "Base URL",
+ "chatEndpointLabel": "Chat endpoint",
+ "modelRecommendationLabel": "Model recommendation: explicit prefix",
+ "clientCodexTitle": "Codex / GitHub Copilot Models",
+ "clientCodexBullet1": "Use model IDs with",
+ "clientCodexBullet2": "Codex-family models auto-route to",
+ "clientCodexBullet3": "Non-Codex models continue on",
+ "clientCursorTitle": "Cursor IDE",
+ "clientCursorBullet1": "Use",
+ "clientCursorBullet1Suffix": "prefix for Cursor models.",
+ "clientCursorBullet2": "OAuth connection - login from the Providers page.",
+ "clientClaudeTitle": "Claude Code / Antigravity",
+ "clientClaudeBullet1Prefix": "Use",
+ "clientClaudeBullet1Middle": "(Claude) or",
+ "clientClaudeBullet1Suffix": "(Antigravity) prefix.",
+ "endpointChatNote": "OpenAI-compatible chat endpoint (default).",
+ "endpointResponsesNote": "Responses API endpoint (Codex, o-series).",
+ "endpointModelsNote": "Model catalog for all connected providers.",
+ "endpointAudioNote": "Audio transcription (Deepgram, AssemblyAI).",
+ "endpointImagesNote": "Image generation (NanoBanana).",
+ "endpointRewriteChatNote": "Rewrite helper for clients without /v1.",
+ "endpointRewriteResponsesNote": "Rewrite helper for Responses without /v1.",
+ "endpointRewriteModelsNote": "Rewrite helper for model discovery without /v1.",
+ "modelPrefixesDescriptionStart": "Use the provider prefix before the model name to route to a specific provider. Example:",
+ "modelPrefixesDescriptionEnd": "routes to GitHub Copilot.",
+ "provider": "Provider",
+ "type": "Type",
+ "troubleshootingModelRouting": "If the client fails with model routing, use explicit provider/model (for example: gh/gpt-5.1-codex).",
+ "troubleshootingAmbiguousModels": "If you receive ambiguous model errors, pick a provider prefix instead of a bare model ID.",
+ "troubleshootingCodexFamily": "For GitHub Codex-family models, keep model as gh/<codex-model>; router selects /responses automatically.",
+ "troubleshootingTestConnection": "Use Dashboard > Providers > Test Connection before testing from IDEs or external clients.",
+ "troubleshootingCircuitBreaker": "If a provider shows circuit breaker open, wait for the cooldown or check Health page for details.",
+ "troubleshootingOAuth": "For OAuth providers, re-authenticate if tokens expire. Check the provider card status indicator."
},
"legal": {
"privacyPolicy": "Privacy Policy",
@@ -1112,6 +1513,53 @@
"viewExportAnalytics": "View and export usage analytics",
"clearHistory": "Clear usage history at any time",
"configureRetention": "Configure log retention policies",
- "backupRestore": "Back up and restore your database"
+ "backupRestore": "Back up and restore your database",
+ "privacyMetadataTitle": "Privacy Policy | OmniRoute",
+ "privacyMetadataDescription": "Privacy policy for the OmniRoute AI API proxy router.",
+ "termsMetadataTitle": "Terms of Service | OmniRoute",
+ "termsMetadataDescription": "Terms of service for the OmniRoute AI API proxy router.",
+ "backToHome": "Back to home",
+ "lastUpdated": "Last updated: {date}",
+ "listSeparator": "-",
+ "questionsVisit": "Questions? Visit our",
+ "githubRepository": "GitHub repository",
+ "privacySection1Title": "1. Local-First Architecture",
+ "privacySection1Text": "OmniRoute is designed as a local-first application. All data processing and storage occurs entirely on your machine. There is no centralized server collecting your information.",
+ "privacySection2Title": "2. Data We Store",
+ "privacyDataStoredIn": "The following data is stored locally in",
+ "privacyDataProviderConfigurationsDesc": "connection URLs, provider types, and priority settings",
+ "privacyDataApiKeysDesc": "encrypted and stored locally for authenticating with AI providers",
+ "privacyDataUsageLogsDesc": "request counts, token usage, model names, timestamps, and response times",
+ "privacyDataApplicationSettingsDesc": "theme preferences, routing strategy, and combo configurations",
+ "privacySection3Title": "3. No Telemetry",
+ "privacySection3Text": "OmniRoute does not collect telemetry, analytics, or crash reports. No data is sent to us or any third party. Your usage patterns, API calls, and configurations remain entirely private.",
+ "privacySection4Title": "4. Third-Party AI Providers",
+ "privacySection4Text": "When you make API calls through OmniRoute, your requests are forwarded to the AI providers you have configured (for example: OpenAI, Anthropic, Google). These providers have their own privacy policies that govern how they handle your data. Please review:",
+ "privacyOpenAiPolicy": "OpenAI Privacy Policy",
+ "privacyAnthropicPolicy": "Anthropic Privacy Policy",
+ "privacyGooglePolicy": "Google Privacy Policy",
+ "privacySection5Title": "5. Cloud Sync (Optional)",
+ "privacySection5Text": "If you enable the optional cloud sync feature, provider configurations and API keys may be transmitted to a configured cloud endpoint. This feature is disabled by default and requires explicit opt-in.",
+ "privacySection6Title": "6. Logging",
+ "privacyLoggingIntro": "Request logs can be configured through the dashboard settings. You can:",
+ "privacySection7Title": "7. Your Rights",
+ "privacySection7TextStart": "Since all data is stored locally, you have full control. You can delete your data at any time by removing the",
+ "privacySection7TextEnd": "directory or using the database backup and restore features in the dashboard.",
+ "termsSection1Title": "1. Overview",
+ "termsSection1Text": "OmniRoute is a local-first AI API proxy router that operates entirely on your machine. It routes requests to multiple AI providers with load balancing, failover, and usage tracking.",
+ "termsSection2Title": "2. User Responsibilities",
+ "termsResponsibilityApiKeys": "You are solely responsible for managing your own API keys and credentials for third-party AI providers (OpenAI, Anthropic, Google, etc.).",
+ "termsResponsibilityCompliance": "You must comply with the terms of service of each AI provider whose API you access through OmniRoute.",
+ "termsResponsibilitySecurity": "You are responsible for the security of your local OmniRoute installation, including setting a password and restricting network access.",
+ "termsSection3Title": "3. How It Works",
+ "termsSection3Text": "OmniRoute acts as an intermediary proxy. API calls sent to OmniRoute are translated and forwarded to your configured AI providers. OmniRoute does not modify the content of your requests or responses beyond the necessary protocol translation.",
+ "termsSection4Title": "4. Data Handling",
+ "termsDataStoredLocally": "All data is stored locally on your machine in a SQLite database.",
+ "termsNoTransmission": "OmniRoute does not transmit any data to external servers unless you explicitly enable cloud sync features.",
+ "termsDataLocationText": "Usage logs, API keys, and configuration are stored in",
+ "termsSection5Title": "5. Disclaimer",
+ "termsSection5Text": "OmniRoute is provided \"as is\" without warranty of any kind. We are not responsible for any costs incurred through API usage, service disruptions, or data loss. Always maintain backups of your configuration.",
+ "termsSection6Title": "6. Open Source",
+ "termsSection6Text": "OmniRoute is open-source software. You are free to inspect, modify, and distribute it under the terms of its license."
}
}
diff --git a/src/i18n/messages/pt-BR.json b/src/i18n/messages/pt-BR.json
index 6500e76de7..3b90f00cf7 100644
--- a/src/i18n/messages/pt-BR.json
+++ b/src/i18n/messages/pt-BR.json
@@ -209,6 +209,22 @@
"keyNameRequired": "Nome da chave é obrigatório",
"keyNameTooLong": "Nome da chave deve ter {max} caracteres ou menos",
"keyNameInvalid": "Nome da chave pode conter apenas letras, números, espaços, hífens e sublinhados",
+ "invalidKeyName": "Nome de chave inválido",
+ "failedCreateKey": "Falha ao criar chave",
+ "failedCreateKeyRetry": "Falha ao criar chave. Tente novamente.",
+ "invalidKeyId": "ID de chave inválido",
+ "failedDeleteKey": "Falha ao excluir chave",
+ "failedDeleteKeyRetry": "Falha ao excluir chave. Tente novamente.",
+ "invalidModelsSelection": "Seleção de modelos inválida",
+ "cannotSelectMoreThanModels": "Não é possível selecionar mais de {max} modelos",
+ "failedUpdatePermissions": "Falha ao atualizar permissões",
+ "failedUpdatePermissionsRetry": "Falha ao atualizar permissões. Tente novamente.",
+ "unknownProvider": "desconhecido",
+ "copyMaskedKey": "Copiar chave mascarada",
+ "modelsCount": "{count, plural, one {# modelo} other {# modelos}}",
+ "lastUsedOn": "Último: {date}",
+ "editPermissions": "Editar permissões",
+ "deleteKey": "Excluir chave",
"model": "{count} modelo",
"models": "{count} modelos",
"permissionsTitle": "Permissões: {name}",
@@ -612,7 +628,118 @@
"disableRateLimitProtection": "Clique para desabilitar proteção de limite de taxa",
"productionKey": "Chave de Produção",
"enterNewApiKey": "Insira a nova chave API",
- "optional": "Opcional"
+ "optional": "Opcional",
+ "anthropicCompatibleName": "Compatível Anthropic",
+ "openaiCompatibleName": "Compatível OpenAI",
+ "failedImportModels": "Falha ao importar modelos",
+ "noModelsReturnedFromEndpoint": "Nenhum modelo retornado do endpoint /models.",
+ "importingModelsProgress": "Importando {current} de {total} modelos...",
+ "foundModelsStartingImport": "{count} modelos encontrados. Iniciando importação...",
+ "importingModelById": "Importando {modelId}...",
+ "importSuccessCount": "Importação concluída com sucesso: {count, plural, one {# modelo} other {# modelos}}!",
+ "noNewModelsAddedExisting": "Nenhum novo modelo foi adicionado (todos já existem).",
+ "importDoneCount": "✓ Concluído! {count, plural, one {# modelo importado.} other {# modelos importados.}}",
+ "unexpectedErrorOccurred": "Ocorreu um erro inesperado",
+ "connectionCountLabel": "{count, plural, one {# conexão} other {# conexões}}",
+ "messagesPath": "messages",
+ "responsesPath": "responses",
+ "chatCompletionsPath": "chat/completions",
+ "add": "Adicionar",
+ "edit": "Editar",
+ "delete": "Excluir",
+ "anthropic": "Anthropic",
+ "openai": "OpenAI",
+ "singleConnectionPerCompatible": "Apenas uma conexão é permitida por nó compatível. Adicione outro nó se precisar de mais conexões.",
+ "connections": "Conexões",
+ "providerProxyTitleConfigured": "Proxy do provedor: {host}",
+ "configured": "configurado",
+ "providerProxyConfigureHint": "Configurar proxy para todas as conexões deste provedor",
+ "providerProxy": "Proxy do Provedor",
+ "noConnectionsYet": "Ainda não há conexões",
+ "addFirstConnectionHint": "Adicione sua primeira conexão para começar",
+ "addConnection": "Adicionar Conexão",
+ "availableModels": "Modelos Disponíveis",
+ "pageAutoRefresh": "A página será atualizada automaticamente...",
+ "statusDisabled": "desativado",
+ "statusConnected": "conectado",
+ "statusRuntimeIssue": "problema local",
+ "statusAuthFailed": "falha de autenticação",
+ "statusRateLimited": "limite de taxa atingido",
+ "statusNetworkIssue": "problema de rede",
+ "statusTestUnsupported": "teste não suportado",
+ "statusUnavailable": "indisponível",
+ "statusFailed": "falhou",
+ "statusError": "erro",
+ "oauthAccount": "Conta OAuth",
+ "errorTypeRuntime": "Runtime local",
+ "errorTypeUpstreamAuth": "Auth upstream",
+ "errorTypeMissingCredential": "Credencial ausente",
+ "errorTypeRefreshFailed": "Falha ao renovar",
+ "errorTypeTokenExpired": "Token expirado",
+ "errorTypeRateLimited": "Rate limited",
+ "errorTypeUpstreamUnavailable": "Upstream indisponível",
+ "errorTypeNetworkError": "Erro de rede",
+ "errorTypeTestUnsupported": "Teste não suportado",
+ "errorTypeUpstreamError": "Erro upstream",
+ "proxySourceGlobal": "Global",
+ "proxySourceProvider": "Provedor",
+ "proxySourceKey": "Chave",
+ "proxyConfiguredBySource": "Proxy ({source}): {host}",
+ "autoPriority": "Auto: {priority}",
+ "proxy": "Proxy",
+ "retestAuthentication": "Retestar autenticação",
+ "retest": "Retestar",
+ "disableConnection": "Desativar conexão",
+ "enableConnection": "Ativar conexão",
+ "reauthenticateConnection": "Reautenticar esta conexão",
+ "proxyConfig": "Configuração de proxy",
+ "aliasExistsAlert": "O alias \"{alias}\" já existe. Use um modelo diferente ou edite o alias existente.",
+ "openRouterAnyModelHint": "OpenRouter suporta qualquer modelo. Adicione modelos e crie aliases para acesso rápido.",
+ "modelIdFromOpenRouter": "ID do Modelo (do OpenRouter)",
+ "openRouterModelPlaceholder": "anthropic/claude-3-opus",
+ "customModels": "Modelos Personalizados",
+ "customModelsHint": "Adicione IDs de modelo que não estão na lista padrão. Eles ficarão disponíveis para roteamento.",
+ "modelId": "ID do Modelo",
+ "customModelPlaceholder": "ex.: gpt-4.5-turbo",
+ "loading": "Carregando...",
+ "removeCustomModel": "Remover modelo personalizado",
+ "noCustomModels": "Nenhum modelo personalizado adicionado ainda.",
+ "allSuggestedAliasesExist": "Todos os aliases sugeridos já existem. Escolha um modelo diferente ou remova aliases conflitantes.",
+ "failedSaveCustomModel": "Falha ao salvar modelo personalizado",
+ "modelAddedSuccess": "Modelo {modelId} adicionado com sucesso",
+ "failedAddModelTryAgain": "Falha ao adicionar modelo. Tente novamente.",
+ "failedSaveImportedModel": "Falha ao salvar modelo importado no banco de modelos personalizados",
+ "failedImportModelsTryAgain": "Falha ao importar modelos. Tente novamente.",
+ "failedRemoveModelFromDatabase": "Falha ao remover modelo do banco de dados",
+ "modelRemovedSuccess": "Modelo removido com sucesso",
+ "failedDeleteModelTryAgain": "Falha ao excluir modelo. Tente novamente.",
+ "compatibleModelsDescription": "Adicione modelos compatíveis com {type} manualmente ou importe-os do endpoint /models.",
+ "anthropicCompatibleModelPlaceholder": "claude-3-opus-20240229",
+ "openaiCompatibleModelPlaceholder": "gpt-4o",
+ "apiKeyValidationFailed": "A validação da chave de API falhou. Verifique sua chave e tente novamente.",
+ "addProviderApiKeyTitle": "Adicionar Chave de API de {provider}",
+ "apiKeyLabel": "Chave de API",
+ "checking": "Verificando...",
+ "check": "Verificar",
+ "valid": "Válido",
+ "invalid": "Inválido",
+ "validationChecksAnthropicCompatible": "A validação verifica {provider} conferindo a chave de API.",
+ "validationChecksOpenAiCompatible": "A validação verifica {provider} via /models na sua URL base.",
+ "priorityLabel": "Prioridade",
+ "saving": "Salvando...",
+ "save": "Salvar",
+ "editConnection": "Editar Conexão",
+ "accountName": "Nome da conta",
+ "email": "Email",
+ "healthCheckMinutes": "Health Check (min)",
+ "healthCheckHint": "Intervalo proativo de renovação de token. 0 = desativado.",
+ "failedTestConnection": "Falha ao testar conexão",
+ "failed": "Falhou",
+ "leaveBlankKeepCurrentApiKey": "Deixe em branco para manter a chave de API atual.",
+ "editCompatibleTitle": "Editar Compatível {type}",
+ "compatibleBaseUrlHint": "Use a URL base (terminando em /v1) para sua API compatível com {type}.",
+ "apiKeyForCheck": "Chave de API (para verificação)",
+ "compatibleProdPlaceholder": "{type} Compatível (Prod)"
},
"settings": {
"title": "Configurações",
@@ -928,9 +1055,19 @@
},
"translator": {
"title": "Tradutor",
+ "metaTitle": "Playground do Tradutor | OmniRoute",
+ "metaDescription": "Depure, teste e visualize traduções de formatos de API entre provedores",
+ "playgroundTitle": "Playground do Tradutor",
+ "playground": "Playground",
"realtime": "Atividade de Tradução em Tempo Real",
"chatTester": "Testador de Chat",
"testBench": "Bancada de Testes",
+ "liveMonitor": "Monitor ao Vivo",
+ "modeDescriptionPlayground": "Cole qualquer corpo de requisição de API e veja como o OmniRoute traduz entre formatos de provedores (OpenAI ↔ Claude ↔ Gemini ↔ Responses API)",
+ "modeDescriptionChatTester": "Envie requisições reais de chat pelo OmniRoute e inspecione o ciclo completo: entrada, requisição traduzida, resposta do provedor e saída traduzida.",
+ "modeDescriptionTestBench": "Execute cenários predefinidos e compare compatibilidade entre provedores e modelos.",
+ "modeDescriptionLiveMonitor": "Acompanhe eventos de tradução em tempo real conforme as requisições passam pelo OmniRoute.",
+ "modeDescriptionFallback": "Depure, teste e visualize como o OmniRoute traduz requisições de API entre provedores.",
"recentTranslations": "Traduções Recentes",
"noTranslations": "Nenhuma tradução ainda",
"source": "Origem",
@@ -939,52 +1076,223 @@
"model": "Modelo",
"status": "Status",
"latency": "Latência",
+ "totalTranslations": "Total de Traduções",
+ "successful": "Sucesso",
+ "errors": "Erros",
+ "avgLatency": "Latência Média",
+ "liveAutoRefreshing": "Ao vivo — atualizando automaticamente",
+ "paused": "Pausado",
+ "eventsAppearHint": "Os eventos de tradução aparecem aqui conforme as requisições passam pelo OmniRoute. Use qualquer um destes métodos para gerar eventos:",
+ "chatTesterTab": "Aba Testador de Chat",
+ "testBenchTab": "Aba Bancada de Testes",
+ "externalApiCalls": "Chamadas de API externas",
+ "ideCliIntegrations": "Integrações IDE/CLI",
+ "inMemoryNote": "Nota: os eventos são armazenados em memória e reiniciados quando o servidor reinicia.",
+ "ok": "OK",
+ "errorShort": "ERR",
"formatConverter": "Conversor de Formato",
+ "formatConverterDescription": "Cole ou digite um corpo de requisição JSON. O tradutor detectará automaticamente o formato de origem e converterá para o formato de destino. Use isso para depurar como o OmniRoute traduz requisições entre formatos (OpenAI ↔ Claude ↔ Gemini ↔ Responses API).",
"input": "Entrada",
"output": "Saída",
+ "auto": "Auto",
+ "swapFormats": "Trocar formatos",
+ "translateAction": "Traduzir",
+ "clear": "Limpar",
+ "inputPlaceholder": "Cole um corpo de requisição aqui ou selecione um modelo abaixo...",
"exampleTemplates": "Modelos de Exemplo",
+ "exampleTemplatesHint": "— Clique para carregar",
+ "templateLoadHint": "O modelo carrega a requisição no formato {format}. Altere o Formato de Origem para carregar em outro formato.",
"compatibilityTester": "Testador de Compatibilidade",
"compatibilityReport": "Relatório de Compatibilidade",
+ "testBenchDescription": "Execute cenários predefinidos (Chat Simples, Chamada de Ferramenta, etc.) para validar tradução e compatibilidade do provedor. Selecione um formato de origem e o provedor de destino, depois execute todos os testes para ver a porcentagem de compatibilidade.",
+ "targetProvider": "Provedor de destino",
+ "runAllTests": "Executar todos os testes",
+ "runTest": "Executar teste",
+ "reRun": "Executar novamente",
+ "running": "Executando...",
+ "passed": "aprovados",
+ "failed": "falharam",
+ "passedIconLabel": "✅ Aprovado",
+ "chunks": "chunks",
+ "scenarioSimpleChat": "Chat Simples",
+ "scenarioToolCalling": "Chamada de Ferramenta",
+ "scenarioMultiTurn": "Multiturno",
+ "scenarioThinking": "Raciocínio",
+ "scenarioSystemPrompt": "Prompt de Sistema",
+ "scenarioStreaming": "Streaming",
+ "noTemplateForFormat": "Sem modelo para este formato",
+ "translationFailed": "Falha na tradução: {error}",
"pipelineDebugger": "Depurador de Pipeline",
"translationPipeline": "Pipeline de Tradução",
- "pipelineVisualization": "Visualização do pipeline"
+ "pipelineVisualization": "Visualização do pipeline",
+ "pipelineVisualizationHint": "Envie uma mensagem para ver como sua requisição flui por detecção → tradução → chamada ao provedor.",
+ "chatTesterDescription": "Envie mensagens em um formato específico de cliente e inspecione cada etapa do pipeline de tradução.",
+ "chatTesterFlow": "Requisição do Cliente → Detecção de Formato → Intermediário OpenAI → Formato do Provedor → Resposta",
+ "clickStepToInspect": "Clique em qualquer etapa para inspecionar os dados naquele ponto.",
+ "clientFormat": "Formato do cliente",
+ "provider": "Provedor",
+ "modelPlaceholder": "Selecione ou digite um nome de modelo...",
+ "sendMessageToSeePipeline": "Envie uma mensagem para ver o pipeline de tradução",
+ "chatMessageHintPrefix": "Sua mensagem será formatada como uma requisição no formato",
+ "chatMessageHintSuffix": "traduzida pelo pipeline e enviada ao provedor selecionado.",
+ "youWithFormat": "Você ({format})",
+ "assistant": "Assistente",
+ "typeMessage": "Digite uma mensagem...",
+ "send": "Enviar",
+ "clientRequest": "Requisição do Cliente",
+ "clientRequestDescription": "O corpo de requisição como seu cliente enviaria",
+ "formatDetected": "Formato Detectado",
+ "formatDetectedDescription": "O OmniRoute detecta automaticamente o formato da API a partir da estrutura da requisição",
+ "openaiIntermediate": "Intermediário OpenAI",
+ "openaiIntermediateDescription": "Todos os formatos são primeiro normalizados para o formato OpenAI (ponte universal)",
+ "providerFormat": "Formato do Provedor",
+ "providerFormatDescription": "O formato OpenAI é traduzido para o formato nativo do provedor",
+ "providerResponse": "Resposta do Provedor",
+ "providerResponseRawDescription": "A resposta bruta da API do provedor",
+ "providerResponseSseDescription": "O stream SSE bruto da API do provedor",
+ "unexpectedError": "Ocorreu um erro inesperado",
+ "error": "Erro",
+ "errorMessage": "Erro: {message}",
+ "requestFailed": "Falha na requisição",
+ "noTextExtracted": "(Nenhum texto extraído)",
+ "liveMonitorDescriptionPrefix": "Mostra eventos de tradução conforme chamadas de API passam pelo OmniRoute. Os eventos vêm do buffer em memória (reinicia ao reiniciar o servidor). Use",
+ "liveMonitorDescriptionSuffix": ", ou chamadas de API externas para gerar eventos."
},
"usage": {
"title": "Uso",
+ "loggerTab": "Logger",
+ "proxyTab": "Proxy",
"budgetManagement": "Gerenciamento de Orçamento",
+ "budgetSaved": "Limites de orçamento salvos",
+ "budgetSaveFailed": "Falha ao salvar limites de orçamento",
+ "loadingBudgetData": "Carregando dados de orçamento...",
+ "noApiKeysTitle": "Nenhuma Chave de API",
+ "noApiKeysDescription": "Adicione chaves de API primeiro para configurar limites de orçamento.",
"apiKey": "Chave de API",
+ "todaysSpend": "Gasto de hoje",
"thisMonth": "Este Mês",
"setLimits": "Definir Limites",
+ "dailyLimitUsd": "Limite diário (USD)",
+ "monthlyLimitUsd": "Limite mensal (USD)",
+ "warningThresholdPercent": "Limite de aviso (%)",
+ "dailyLimitPlaceholder": "ex.: 5.00",
+ "monthlyLimitPlaceholder": "ex.: 50.00",
+ "warningThresholdPlaceholder": "80",
+ "saveLimits": "Salvar limites",
+ "budgetOk": "Orçamento OK — ${remaining} restantes",
+ "budgetExceeded": "Orçamento excedido — requisições podem ser bloqueadas",
"totalRequests": "Total de requisições",
"noDataYet": "Sem dados ainda",
+ "latency": "Latência",
+ "promptCache": "Cache de Prompt",
+ "systemHealth": "Saúde do Sistema",
"entries": "Entradas",
+ "activeCount": "{count, plural, one {# ativo} other {# ativos}}",
+ "openCircuitBreakersDetected": "Disjuntores abertos detectados",
"hitRate": "Taxa de Acerto",
"hitsMisses": "Acertos / Erros",
"circuitBreakers": "Disjuntores",
"lockedIPs": "IPs Bloqueados",
+ "lockoutsAutoRefreshHint": "Bloqueios por limite de taxa por modelo • Atualização automática 10s",
+ "lockedCount": "{count, plural, one {# bloqueado} other {# bloqueados}}",
+ "timeLeft": "{time} restantes",
"howItWorks": "Como Funciona",
+ "howItWorksSubtitle": "Entenda como as avaliações validam as respostas do seu LLM",
"define": "Definir",
+ "defineStepDescription": "Crie casos de teste com prompts de entrada e critérios de saída esperados usando estratégias como contains, regex ou correspondência exata.",
"run": "Executar",
+ "runStepDescription": "Execute casos de teste contra seus endpoints de LLM via OmniRoute. Cada caso é enviado como uma requisição real de API.",
"evaluate": "Avaliar",
+ "evaluateStepDescription": "As respostas são comparadas com os critérios esperados. Veja aprovado/reprovado por caso com métricas de latência e feedback detalhado.",
"evalSuites": "Suítes de Avaliação",
+ "evalSuitesHint": "Clique em uma suíte para ver os casos de teste e execute para avaliar seus endpoints de LLM",
+ "evalsLoading": "Carregando suítes de avaliação...",
+ "noEvalSuitesFound": "Nenhuma suíte de avaliação encontrada",
+ "noEvalSuitesDescription": "As suítes de avaliação podem ser definidas via API ou em código. Elas testam saídas de modelos contra resultados esperados usando estratégias como contains, regex, correspondência exata e funções customizadas.",
+ "columnCase": "Caso",
+ "columnStatus": "Status",
+ "columnLatency": "Latência",
+ "columnDetails": "Detalhes",
+ "columnModel": "Modelo",
+ "columnStrategy": "Estratégia",
+ "columnExpected": "Esperado",
+ "statsSuites": "Suítes",
+ "statsTestCases": "Casos de Teste",
+ "statsModels": "Modelos",
+ "statsCoverage": "Cobertura",
+ "statsStrategiesCount": "{count} estratégias",
+ "evaluationStrategies": "Estratégias de Avaliação",
+ "modelsUnderTest": "Modelos em Teste",
+ "searchSuitesPlaceholder": "Buscar suítes...",
+ "passSuffix": "de aprovação",
+ "casesCount": "{count, plural, one {# caso} other {# casos}}",
+ "runEval": "Executar avaliação",
+ "runningProgress": "Executando {current}/{total}...",
+ "passRate": "taxa de aprovação",
+ "summaryBreakdown": "{passed} aprovados · {failed} falharam · {total} total",
+ "passedIconLabel": "✅ Aprovado",
+ "failedIconLabel": "❌ Falhou",
+ "detailsContains": "Contém: \"{term}\"",
+ "detailsRegex": "Regex: {pattern}",
+ "detailsExpected": "Esperado: \"{expected}\"",
+ "noResultsYet": "Sem resultados ainda",
+ "testCasesCount": "Casos de Teste ({count})",
+ "noTestCasesDefined": "Nenhum caso de teste definido",
+ "runEvalHint": "Clique em \"Executar avaliação\" para executar todos os casos contra seu endpoint de LLM. Cada teste envia uma requisição real pelo OmniRoute.",
+ "notifyNoTestCases": "Nenhum caso de teste definido para esta suíte",
+ "notifyAllCasesPassed": "Todos os {total} casos passaram ✅",
+ "notifySomeCasesFailed": "{passed}/{total} passaram, {failed} falharam",
+ "notifyEvalRunFailed": "Falha na execução da avaliação",
+ "notifyEvalTitle": "Avaliação: {name}",
"modelEvals": "Avaliações de Modelos",
+ "evalsHeroDescription": "Teste e valide seus endpoints de LLM executando suítes de avaliação predefinidas. Cada suíte contém casos de teste que enviam prompts reais pelo OmniRoute e comparam respostas com critérios esperados — ajudando você a detectar regressões, comparar modelos e garantir qualidade de resposta entre provedores.",
+ "qualityValidation": "Validação de Qualidade",
+ "modelComparison": "Comparação de Modelos",
+ "regressionDetection": "Detecção de Regressão",
+ "latencyBenchmarks": "Benchmarks de Latência",
"modelLockouts": "Bloqueios de Modelo",
"noLockouts": "Nenhum modelo bloqueado",
"activeSessions": "Sessões Ativas",
"noSessions": "Sem sessões ativas",
"sessionsHint": "Sessões aparecem conforme requisições passam pelo proxy",
+ "sessionsTrackedHint": "Rastreado por fingerprint de requisições • Atualização automática 5s",
"session": "Sessão",
"age": "Idade",
"requests": "Requisições",
"connection": "Conexão",
+ "durationMillisecondsShort": "{value}ms",
+ "durationSecondsShort": "{value}s",
+ "durationMinutesShort": "{value}m",
+ "durationHoursShort": "{value}h",
+ "reasonSeparator": " - ",
+ "notAvailableSymbol": "-",
"providerLimits": "Limites do Provedor",
"noProviders": "Nenhum Provedor Conectado",
+ "connectProvidersForQuota": "Conecte provedores com OAuth para acompanhar limites e uso de cota da API.",
+ "accountsCount": "{count, plural, one {# conta} other {# contas}}",
+ "filteredFromCount": "(filtrado de {count})",
+ "autoRefresh": "Atualização automática",
+ "refreshAll": "Atualizar tudo",
+ "loadingQuotas": "Carregando...",
"account": "Conta",
"modelQuotas": "Cotas de Modelo",
"lastUsed": "Último uso",
"actions": "Ações",
+ "refreshQuota": "Atualizar cota",
+ "rawPlanWithValue": "Plano bruto: {plan}",
+ "noPlanFromProvider": "Sem plano do provedor",
"noQuotaData": "Sem dados de cota",
- "noQuotaDataAvailable": "Nenhum dado de cota disponível"
+ "noQuotaDataAvailable": "Nenhum dado de cota disponível",
+ "noAccountsForTierFilter": "Nenhuma conta encontrada para o filtro de plano",
+ "tierAll": "Todos",
+ "tierEnterprise": "Enterprise",
+ "tierTeam": "Team",
+ "tierBusiness": "Business",
+ "tierUltra": "Ultra",
+ "tierPro": "Pro",
+ "tierPlus": "Plus",
+ "tierFree": "Free",
+ "tierUnknown": "Desconhecido"
},
"modals": {
"waitingAuth": "Aguardando Autorização",
@@ -1067,6 +1375,18 @@
"authSuccess": "Autorização bem-sucedida!",
"copyUrl": "Copiar esta URL",
"accessDenied": "Acesso Negado",
+ "methodCliTitle": "Método 1: Reset via CLI",
+ "methodCliDescription": "Execute o comando abaixo no servidor onde o OmniRoute está em execução:",
+ "methodCliHint": "Isso solicitará que você defina uma nova senha. O servidor deve ser parado antes.",
+ "methodManualTitle": "Método 2: Reset Manual",
+ "methodManualDescription": "Remova a senha do banco de dados e defina uma nova na inicialização:",
+ "setPasswordInYour": "Defina uma nova senha no seu",
+ "fileLabelSuffix": "arquivo:",
+ "newPasswordPlaceholder": "sua_nova_senha",
+ "deleteSettingsFile": "Exclua",
+ "orRemovePasswordHashField": "ou remova o campo passwordHash",
+ "restartServerWithNewPassword": "Reinicie o servidor - ele usará a nova senha",
+ "backToLogin": "Voltar para o Login",
"forgotPassword": "Esqueceu a senha?"
},
"landing": {
@@ -1089,6 +1409,7 @@
"quickStart": "Início Rápido",
"features": "Recursos",
"supportedProviders": "Provedores Suportados",
+ "supportedProvidersToc": "Provedores",
"commonUseCases": "Casos de Uso Comuns",
"clientCompatibility": "Compatibilidade de Clientes",
"apiReference": "Referência da API",
@@ -1100,7 +1421,87 @@
"troubleshooting": "Solução de Problemas",
"supportsChat": "Suporta endpoints de chat e responses.",
"oauthAutoRefresh": "Conexão OAuth com atualização automática de token.",
- "fullStreaming": "Suporte completo a streaming para todos os modelos."
+ "fullStreaming": "Suporte completo a streaming para todos os modelos.",
+ "docsLabel": "Docs",
+ "docsHeroDescription": "Gateway de IA para LLMs multi-provedor. Um endpoint para OpenAI, Anthropic, Gemini, GitHub Copilot, Claude Code, Cursor e mais de 20 provedores.",
+ "openDashboard": "Abrir Painel",
+ "endpointPage": "Página de Endpoint",
+ "github": "GitHub",
+ "reportIssue": "Reportar Problema",
+ "onThisPage": "Nesta página",
+ "documentationVersion": "Documentação - v{version}",
+ "quickStartStep1Title": "1. Instale e execute",
+ "quickStartStep1Prefix": "Execute",
+ "quickStartStep1Middle": "ou clone do GitHub e execute",
+ "quickStartStep2Title": "2. Crie uma chave de API",
+ "quickStartStep2Text": "Vá em Endpoint -> Chaves Registradas. Gere uma chave por ambiente.",
+ "quickStartStep3Title": "3. Conecte provedores",
+ "quickStartStep3Text": "Adicione contas de provedores via login OAuth, chave de API ou conexão automática de plano gratuito.",
+ "quickStartStep4Title": "4. Defina a URL base do cliente",
+ "quickStartStep4Prefix": "Aponte sua IDE ou cliente de API para",
+ "quickStartStep4Suffix": "Use prefixo de provedor, por exemplo",
+ "featureRoutingTitle": "Roteamento Multi-Provedor",
+ "featureRoutingText": "Roteie requisições para mais de 30 provedores de IA por um único endpoint compatível com OpenAI. Suporta APIs de chat, responses, áudio e imagem.",
+ "featureCombosTitle": "Combos e Balanceamento",
+ "featureCombosText": "Crie combos de modelos com cadeias de fallback e estratégias de balanceamento: round-robin, prioridade, aleatório, menos usado e otimizado por custo.",
+ "featureUsageTitle": "Rastreamento de Uso e Custo",
+ "featureUsageText": "Contagem de tokens em tempo real, cálculo de custo por provedor/modelo e detalhamento de uso por chave de API e conta.",
+ "featureAnalyticsTitle": "Painel de Analytics",
+ "featureAnalyticsText": "Análises visuais com gráficos de requisições, tokens, erros, latência, custos e popularidade de modelos ao longo do tempo.",
+ "featureHealthTitle": "Monitoramento de Saúde",
+ "featureHealthText": "Health checks em tempo real, status de provedores, estados de circuit breaker e detecção automática de rate limit com backoff exponencial.",
+ "featureCliTitle": "Ferramentas CLI",
+ "featureCliText": "Gerencie configurações de IDE, exporte/importe backups, descubra perfis de codex e configure opções pelo painel.",
+ "featureSecurityTitle": "Segurança e Políticas",
+ "featureSecurityText": "Autenticação por chave de API, filtragem de IP, proteção contra prompt injection, políticas de domínio, gerenciamento de sessões e auditoria.",
+ "featureCloudSyncTitle": "Sincronização em Nuvem",
+ "featureCloudSyncText": "Sincronize sua configuração com Cloudflare Workers para acesso remoto com credenciais criptografadas e failover automático.",
+ "providersAcrossConnectionTypes": "{count} provedores em três tipos de conexão.",
+ "manageProviders": "Gerenciar Provedores",
+ "providersCount": "{count} provedores",
+ "providerTypeFree": "Plano Gratuito",
+ "providerTypeOAuth": "OAuth",
+ "providerTypeApiKey": "Chave de API",
+ "useCaseSingleEndpointTitle": "Um endpoint para muitos provedores",
+ "useCaseSingleEndpointText": "Aponte clientes para uma única URL base e roteie por prefixo de modelo (por exemplo: gh/, cc/, kr/, openai/).",
+ "useCaseFallbackTitle": "Fallback e troca de modelo com combos",
+ "useCaseFallbackText": "Crie modelos combo no painel e mantenha a configuração do cliente estável enquanto os provedores giram internamente.",
+ "useCaseUsageVisibilityTitle": "Visibilidade de uso, custo e debug",
+ "useCaseUsageVisibilityText": "Acompanhe tokens e custo por provedor, conta e chave de API nas abas de Uso e Analytics.",
+ "clientCherryStudioTitle": "Cherry Studio",
+ "baseUrlLabel": "URL Base",
+ "chatEndpointLabel": "Endpoint de chat",
+ "modelRecommendationLabel": "Recomendação de modelo: prefixo explícito",
+ "clientCodexTitle": "Modelos Codex / GitHub Copilot",
+ "clientCodexBullet1": "Use IDs de modelo com prefixo",
+ "clientCodexBullet2": "Modelos da família Codex são roteados automaticamente para",
+ "clientCodexBullet3": "Modelos não-Codex continuam em",
+ "clientCursorTitle": "Cursor IDE",
+ "clientCursorBullet1": "Use o prefixo",
+ "clientCursorBullet1Suffix": "para modelos do Cursor.",
+ "clientCursorBullet2": "Conexão OAuth - faça login na página de Provedores.",
+ "clientClaudeTitle": "Claude Code / Antigravity",
+ "clientClaudeBullet1Prefix": "Use",
+ "clientClaudeBullet1Middle": "(Claude) ou",
+ "clientClaudeBullet1Suffix": "(Antigravity) como prefixo.",
+ "endpointChatNote": "Endpoint de chat compatível com OpenAI (padrão).",
+ "endpointResponsesNote": "Endpoint da API Responses (Codex, o-series).",
+ "endpointModelsNote": "Catálogo de modelos para todos os provedores conectados.",
+ "endpointAudioNote": "Transcrição de áudio (Deepgram, AssemblyAI).",
+ "endpointImagesNote": "Geração de imagens (NanoBanana).",
+ "endpointRewriteChatNote": "Auxiliar de reescrita para clientes sem /v1.",
+ "endpointRewriteResponsesNote": "Auxiliar de reescrita para Responses sem /v1.",
+ "endpointRewriteModelsNote": "Auxiliar de reescrita para descoberta de modelos sem /v1.",
+ "modelPrefixesDescriptionStart": "Use o prefixo do provedor antes do nome do modelo para rotear para um provedor específico. Exemplo:",
+ "modelPrefixesDescriptionEnd": "roteia para o GitHub Copilot.",
+ "provider": "Provedor",
+ "type": "Tipo",
+ "troubleshootingModelRouting": "Se o cliente falhar no roteamento de modelo, use provedor/modelo explícito (por exemplo: gh/gpt-5.1-codex).",
+ "troubleshootingAmbiguousModels": "Se você receber erros de modelo ambíguo, escolha um prefixo de provedor em vez de um ID de modelo sem prefixo.",
+ "troubleshootingCodexFamily": "Para modelos da família GitHub Codex, mantenha o modelo como gh/<codex-model>; o roteador seleciona /responses automaticamente.",
+ "troubleshootingTestConnection": "Use Painel > Provedores > Testar Conexão antes de testar por IDEs ou clientes externos.",
+ "troubleshootingCircuitBreaker": "Se um provedor mostrar circuit breaker aberto, aguarde o cooldown ou verifique a página Health para detalhes.",
+ "troubleshootingOAuth": "Para provedores OAuth, autentique novamente se os tokens expirarem. Verifique o indicador de status no card do provedor."
},
"legal": {
"privacyPolicy": "Política de Privacidade",
@@ -1112,6 +1513,53 @@
"viewExportAnalytics": "Visualizar e exportar análises de uso",
"clearHistory": "Limpar histórico de uso a qualquer momento",
"configureRetention": "Configurar políticas de retenção de logs",
- "backupRestore": "Fazer backup e restaurar seu banco de dados"
+ "backupRestore": "Fazer backup e restaurar seu banco de dados",
+ "privacyMetadataTitle": "Política de Privacidade | OmniRoute",
+ "privacyMetadataDescription": "Política de privacidade do roteador proxy de API de IA OmniRoute.",
+ "termsMetadataTitle": "Termos de Serviço | OmniRoute",
+ "termsMetadataDescription": "Termos de serviço do roteador proxy de API de IA OmniRoute.",
+ "backToHome": "Voltar para a home",
+ "lastUpdated": "Última atualização: {date}",
+ "listSeparator": "-",
+ "questionsVisit": "Dúvidas? Visite nosso",
+ "githubRepository": "repositório no GitHub",
+ "privacySection1Title": "1. Arquitetura Local-First",
+ "privacySection1Text": "O OmniRoute foi projetado como uma aplicação local-first. Todo processamento e armazenamento de dados ocorre inteiramente na sua máquina. Não existe servidor centralizado coletando suas informações.",
+ "privacySection2Title": "2. Dados que Armazenamos",
+ "privacyDataStoredIn": "Os dados a seguir são armazenados localmente em",
+ "privacyDataProviderConfigurationsDesc": "URLs de conexão, tipos de provedor e configurações de prioridade",
+ "privacyDataApiKeysDesc": "criptografadas e armazenadas localmente para autenticar com provedores de IA",
+ "privacyDataUsageLogsDesc": "contagem de requisições, uso de tokens, nomes de modelos, timestamps e tempos de resposta",
+ "privacyDataApplicationSettingsDesc": "preferências de tema, estratégia de roteamento e configurações de combos",
+ "privacySection3Title": "3. Sem Telemetria",
+ "privacySection3Text": "O OmniRoute não coleta telemetria, analytics ou relatórios de falha. Nenhum dado é enviado para nós ou para terceiros. Seus padrões de uso, chamadas de API e configurações permanecem totalmente privados.",
+ "privacySection4Title": "4. Provedores de IA de Terceiros",
+ "privacySection4Text": "Quando você faz chamadas de API pelo OmniRoute, suas requisições são encaminhadas aos provedores de IA configurados (por exemplo: OpenAI, Anthropic, Google). Esses provedores possuem suas próprias políticas de privacidade que regem como tratam seus dados. Consulte:",
+ "privacyOpenAiPolicy": "Política de Privacidade da OpenAI",
+ "privacyAnthropicPolicy": "Política de Privacidade da Anthropic",
+ "privacyGooglePolicy": "Política de Privacidade do Google",
+ "privacySection5Title": "5. Sincronização em Nuvem (Opcional)",
+ "privacySection5Text": "Se você ativar o recurso opcional de sincronização em nuvem, configurações de provedores e chaves de API podem ser transmitidas para um endpoint de nuvem configurado. Esse recurso vem desativado por padrão e exige opt-in explícito.",
+ "privacySection6Title": "6. Logs",
+ "privacyLoggingIntro": "Os logs de requisição podem ser configurados nas configurações do painel. Você pode:",
+ "privacySection7Title": "7. Seus Direitos",
+ "privacySection7TextStart": "Como todos os dados são armazenados localmente, você tem controle total. Você pode excluir seus dados a qualquer momento removendo o diretório",
+ "privacySection7TextEnd": "ou usando os recursos de backup e restauração do banco de dados no painel.",
+ "termsSection1Title": "1. Visão Geral",
+ "termsSection1Text": "O OmniRoute é um roteador proxy de API de IA local-first que roda inteiramente na sua máquina. Ele roteia requisições para múltiplos provedores de IA com balanceamento de carga, failover e rastreamento de uso.",
+ "termsSection2Title": "2. Responsabilidades do Usuário",
+ "termsResponsibilityApiKeys": "Você é o único responsável por gerenciar suas próprias chaves de API e credenciais para provedores de IA de terceiros (OpenAI, Anthropic, Google etc.).",
+ "termsResponsibilityCompliance": "Você deve cumprir os termos de serviço de cada provedor de IA cuja API acessar através do OmniRoute.",
+ "termsResponsibilitySecurity": "Você é responsável pela segurança da sua instalação local do OmniRoute, incluindo definir uma senha e restringir acesso de rede.",
+ "termsSection3Title": "3. Como Funciona",
+ "termsSection3Text": "O OmniRoute atua como um proxy intermediário. As chamadas de API enviadas ao OmniRoute são traduzidas e encaminhadas para seus provedores de IA configurados. O OmniRoute não modifica o conteúdo das suas requisições ou respostas além da tradução de protocolo necessária.",
+ "termsSection4Title": "4. Tratamento de Dados",
+ "termsDataStoredLocally": "Todos os dados são armazenados localmente na sua máquina em um banco SQLite.",
+ "termsNoTransmission": "O OmniRoute não transmite dados para servidores externos, a menos que você ative explicitamente recursos de sincronização em nuvem.",
+ "termsDataLocationText": "Logs de uso, chaves de API e configurações são armazenados em",
+ "termsSection5Title": "5. Isenção de Responsabilidade",
+ "termsSection5Text": "O OmniRoute é fornecido \"como está\", sem garantia de qualquer tipo. Não somos responsáveis por custos incorridos por uso de API, interrupções de serviço ou perda de dados. Sempre mantenha backups da sua configuração.",
+ "termsSection6Title": "6. Código Aberto",
+ "termsSection6Text": "O OmniRoute é um software de código aberto. Você pode inspecionar, modificar e distribuí-lo de acordo com os termos da licença."
}
}