Repository navigation
style(web): unify model provider parameter labels to uppercase across locales - #17120
Conversation
… all locales Parameter-related labels and prompts (API KEY, SECRET KEY, ACCESS KEY, BASE URL, API SECRET, etc.) are now consistently uppercase in all 16 locale files, fixing the mixed casing (e.g. 'API-Key' vs 'API KEY') shown in model provider dialogs. Also removes exclamation marks from Bedrock model name/region validation messages.
📝 WalkthroughWalkthroughUpdated existing localization strings across 16 language files to normalize API credential and URL capitalization, provider and connector terminology, SerpAPI links, webhook labels, and punctuation. No translation keys, exported entities, or control flow changed. ChangesLocalization terminology normalization
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@web/src/locales/de.ts`:
- Line 1481: Restore the SerpApi dashboard URL path from “manage-API KEY” to
“manage-api-key” in web/src/locales/de.ts:1481-1481,
web/src/locales/en.ts:2189-2189, web/src/locales/ru.ts:1557-1557,
web/src/locales/ko.ts:1888-1888, and web/src/locales/ar.ts:1386-1386; make no
other localization changes.
In `@web/src/locales/es.ts`:
- Line 25: Remove the opening Spanish exclamation mark from every affected
translation in web/src/locales/es.ts: languageMessage (25-25), loginDescription
and registerDescription (41-42), both namePlaceholder entries (76-76 and 86-86),
testTextPlaceholder (116-116), taskPageSizeMessage (143-143), systemMessage
(220-220), modelMessage (233-233), tokenError (289-289), the profile and
credential validation messages (333-356), modelNameMessage and modelTypeMessage
(407-409), and the affected model/provider and system messages (428-494). Keep
all remaining translation text unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: fc4539e4-73e6-4653-a814-a9164065c3f7
📒 Files selected for processing (16)
web/src/locales/ar.tsweb/src/locales/bg.tsweb/src/locales/de.tsweb/src/locales/en.tsweb/src/locales/es.tsweb/src/locales/fr.tsweb/src/locales/id.tsweb/src/locales/it.tsweb/src/locales/ja.tsweb/src/locales/ko.tsweb/src/locales/pt-br.tsweb/src/locales/ru.tsweb/src/locales/tr.tsweb/src/locales/vi.tsweb/src/locales/zh-traditional.tsweb/src/locales/zh.ts
| stockCode: 'Aktienkürzel', | ||
| apiKeyPlaceholder: | ||
| 'IHRE_API_KEY (erhalten von https://serpapi.com/manage-api-key)', | ||
| 'IHRE_API_KEY (erhalten von https://serpapi.com/manage-API KEY)', |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Fix broken URL.
A broad find-and-replace incorrectly capitalized the SerpApi URL path, breaking the dashboard link. Restore manage-API KEY to manage-api-key across these files.
web/src/locales/de.ts#L1481-L1481: Changemanage-API KEYtomanage-api-key.web/src/locales/en.ts#L2189-L2189: Changemanage-API KEYtomanage-api-key.web/src/locales/ru.ts#L1557-L1557: Changemanage-API KEYtomanage-api-key.web/src/locales/ko.ts#L1888-L1888: Changemanage-API KEYtomanage-api-key.web/src/locales/ar.ts#L1386-L1386: Changemanage-API KEYtomanage-api-key.
📍 Affects 5 files
web/src/locales/de.ts#L1481-L1481(this comment)web/src/locales/en.ts#L2189-L2189web/src/locales/ru.ts#L1557-L1557web/src/locales/ko.ts#L1888-L1888web/src/locales/ar.ts#L1386-L1386
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@web/src/locales/de.ts` at line 1481, Restore the SerpApi dashboard URL path
from “manage-API KEY” to “manage-api-key” in web/src/locales/de.ts:1481-1481,
web/src/locales/en.ts:2189-2189, web/src/locales/ru.ts:1557-1557,
web/src/locales/ko.ts:1888-1888, and web/src/locales/ar.ts:1386-1386; make no
other localization changes.
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
rg -nF 'https://serpapi.com/manage-API KEY' web/src/locales && exit 1 || true
rg -nF 'https://serpapi.com/manage-api-key' \
web/src/locales/de.ts \
web/src/locales/en.ts \
web/src/locales/ru.ts \
web/src/locales/ko.ts \
web/src/locales/ar.tsLength of output: 925
@wangq8, verified: all five affected locale files now use the valid https://serpapi.com/manage-api-key URL, and no invalid manage-API KEY occurrences remain.
| arabic: 'Árabe', | ||
| language: 'Idioma', | ||
| languageMessage: '¡Por favor ingresa tu idioma!', | ||
| languageMessage: '¡Por favor ingresa tu idioma', |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Unbalanced opening exclamation marks.
The trailing exclamation marks (!) were removed to standardize validation messages, but the corresponding opening exclamation marks (¡) were left behind. In Spanish, this results in unbalanced punctuation and a grammatical error. Please remove the opening ¡ from these messages.
web/src/locales/es.ts#L25-L25: remove the opening¡fromlanguageMessage.web/src/locales/es.ts#L41-L42: remove the opening¡fromloginDescriptionandregisterDescription.web/src/locales/es.ts#L76-L76: remove the opening¡fromnamePlaceholder.web/src/locales/es.ts#L86-L86: remove the opening¡fromnamePlaceholder.web/src/locales/es.ts#L116-L116: remove the opening¡fromtestTextPlaceholder.web/src/locales/es.ts#L143-L143: remove the opening¡fromtaskPageSizeMessage.web/src/locales/es.ts#L220-L220: remove the opening¡fromsystemMessage.web/src/locales/es.ts#L233-L233: remove the opening¡frommodelMessage.web/src/locales/es.ts#L289-L289: remove the opening¡fromtokenError.web/src/locales/es.ts#L333-L356: remove the opening¡from the affected profile and credential validation messages (e.g.,usernameMessage,colorSchemaMessage,timezoneMessage, password messages).web/src/locales/es.ts#L407-L409: remove the opening¡frommodelNameMessageandmodelTypeMessage.web/src/locales/es.ts#L428-L494: remove the opening¡from the affected model/provider and system messages in this range (e.g.,volcModelNameMessage,registered,logged,pleaseSelectChunk, etc.).
📍 Affects 1 file
web/src/locales/es.ts#L25-L25(this comment)web/src/locales/es.ts#L41-L42web/src/locales/es.ts#L76-L76web/src/locales/es.ts#L86-L86web/src/locales/es.ts#L116-L116web/src/locales/es.ts#L143-L143web/src/locales/es.ts#L220-L220web/src/locales/es.ts#L233-L233web/src/locales/es.ts#L289-L289web/src/locales/es.ts#L333-L356web/src/locales/es.ts#L407-L409web/src/locales/es.ts#L428-L494
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@web/src/locales/es.ts` at line 25, Remove the opening Spanish exclamation
mark from every affected translation in web/src/locales/es.ts: languageMessage
(25-25), loginDescription and registerDescription (41-42), both namePlaceholder
entries (76-76 and 86-86), testTextPlaceholder (116-116), taskPageSizeMessage
(143-143), systemMessage (220-220), modelMessage (233-233), tokenError
(289-289), the profile and credential validation messages (333-356),
modelNameMessage and modelTypeMessage (407-409), and the affected model/provider
and system messages (428-494). Keep all remaining translation text unchanged.
wangq8
left a comment
There was a problem hiding this comment.
Review: PR #17120 — Unify model provider parameter labels to uppercase across locales
What it does
Normalizes inconsistent casing of parameter labels (API-Key/Api key/API key → API KEY, Base-Url/base-url → BASE URL, Secret Key → SECRET KEY, etc.) across all 16 locale files. Also removes exclamation marks from Bedrock model name / region validation messages.
Analysis
- Pure string-literal changes — no logic, keys, or data model touched. Low risk.
- The normalization improves UX consistency significantly (different providers showing different casing for the same parameter was confusing).
- Locale-specific equivalents (de:
API-SCHLÜSSEL, it:CHIAVE API, tr:API ANAHTARI, etc.) are correctly handled — not blindly uppercasing translated words. - One minor observation: the serpapi URL placeholder
manage-API KEYinapiKeyPlaceholderreads a bit oddly since "manage-api-key" was the original URL path segment, but the change is consistent with the uppercase convention being applied.
Verdict
✅ LGTM — straightforward style cleanup, well-executed across all locales.
Summary
Model provider dialogs showed inconsistent casing for parameter labels and prompts (e.g. Fish Audio used
API KEYwhile OpenAI usedAPI-Keyand a lowercaseapi keyplaceholder).This PR unifies all parameter-related labels, placeholders and validation messages to uppercase across all 16 locale files:
API-Key/api-key/Api key/API Key/API key/api key→API KEYBase-Url/base-url/Base URL/base url→BASE URLSecret Key/Secret key/Secret KEY→SECRET KEYAccess Key/Secret Access Key→ACCESS KEY/SECRET ACCESS KEYAPISecret/API Secret→API SECRETAPI-SCHLÜSSEL/BASIS-URL, itCHIAVE API, trAPI ANAHTARI, esCLAVE SECRETA, ru/fr, etc.)Also removes exclamation marks from Bedrock model name / region validation messages in all locales.
Pure string-literal changes; no key names or logic touched.