chore(i18n): replace hardcoded UI text with t() calls across dashboard (round 5)

Round-5 agent began processing the remaining smaller dashboard files.
Added 5 more keys to en.json for providers/[id]/page.tsx OAuth flow
labels and the cross-OS auto-detection hint.

Pages affected:
- providers/[id]/page.tsx (5 keys)

Hardcoded total: 140 → 136. Real missing keys: 0.
This commit is contained in:
diegosouzapw
2026-05-19 22:53:35 -03:00
parent 42e1466cf4
commit 546d7e95da
2 changed files with 19 additions and 8 deletions

View File

@@ -7184,7 +7184,9 @@ function AddApiKeyModal({
open_in_new
</span>
<div className="min-w-0 flex-1">
<p className="font-medium text-text-main">Browser/manual connect</p>
<p className="font-medium text-text-main">
{t("providerDetailBrowserManualConnect")}
</p>
<p className="mt-1 text-xs text-text-muted">
Open Command Code Studio, then paste the returned key/JSON/URL into the API
key field below.
@@ -7197,7 +7199,9 @@ function AddApiKeyModal({
{commandCodeAuthState?.authUrl && (
<div className="mt-3 space-y-2">
<div>
<p className="mb-1 text-xs font-medium text-text-main">Auth URL</p>
<p className="mb-1 text-xs font-medium text-text-main">
{t("providerDetailAuthUrl")}
</p>
<div className="flex gap-2">
<Input
value={commandCodeAuthState.authUrl}
@@ -7216,7 +7220,9 @@ function AddApiKeyModal({
</div>
{commandCodeAuthState.callbackUrl && (
<div>
<p className="mb-1 text-xs font-medium text-text-main">Callback URL</p>
<p className="mb-1 text-xs font-medium text-text-main">
{t("providerDetailCallbackUrl")}
</p>
<div className="flex gap-2">
<Input
value={commandCodeAuthState.callbackUrl}
@@ -8163,9 +8169,7 @@ function ApplyCodexAuthModal({
<code className="block rounded bg-sidebar px-2 py-1.5 text-xs font-mono text-text-main">
~/.codex/auth.json
</code>
<p className="mt-1 text-xs text-text-muted">
Path is auto-detected per OS (Linux/Mac/Windows).
</p>
<p className="mt-1 text-xs text-text-muted">{t("providerDetailPathAutoDetectedAllOs")}</p>
</div>
<div>
<div className="text-xs uppercase text-text-muted mb-1">{backupLabel}</div>
@@ -8619,7 +8623,9 @@ function ImportClaudeAuthModal({ onClose, onSuccess }: ImportClaudeAuthModalProp
className="block w-full text-sm"
/>
{singleJson && previewClaudeJson(singleJson).valid && (
<p className="mt-1 text-xs text-emerald-500">Valid Claude credentials file</p>
<p className="mt-1 text-xs text-emerald-500">
{t("providerDetailValidClaudeCredentialsFile")}
</p>
)}
{singleJson && !previewClaudeJson(singleJson).valid && (
<p className="mt-1 text-xs text-red-500">

View File

@@ -3615,7 +3615,12 @@
"ideProvidersDesc": "Editors with built-in AI subscription. Use the provider page to import credentials directly from the IDE keychain.",
"noIdeProviders": "No IDE providers match the current filters.",
"providerDetailFastTierTooltip": "Apply Codex Fast tier to all Codex connections by default",
"providerDetailFastDefaultLabel": "Fast default"
"providerDetailFastDefaultLabel": "Fast default",
"providerDetailBrowserManualConnect": "Browser/manual connect",
"providerDetailAuthUrl": "Auth URL",
"providerDetailCallbackUrl": "Callback URL",
"providerDetailValidClaudeCredentialsFile": "Valid Claude credentials file",
"providerDetailPathAutoDetectedAllOs": "Path is auto-detected per OS (Linux/Mac/Windows)."
},
"settings": {
"title": "Settings",