Skip to content

style(web): unify model provider parameter labels to uppercase across locales - #17120

Merged
wangq8 merged 2 commits into
infiniflow:mainfrom
euvre:fix/unify-model-param-casing
Jul 20, 2026
Merged

wangq8 merged 2 commits into
infiniflow:mainfrom
euvre:fix/unify-model-param-casing

Conversation

@euvre

@euvre euvre commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Model provider dialogs showed inconsistent casing for parameter labels and prompts (e.g. Fish Audio used API KEY while OpenAI used API-Key and a lowercase api key placeholder).

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 KEY
  • Base-Url / base-url / Base URL / base url → BASE URL
  • Secret Key / Secret key / Secret KEY → SECRET KEY
  • Access Key / Secret Access Key → ACCESS KEY / SECRET ACCESS KEY
  • APISecret / API Secret → API SECRET
  • Locale-specific equivalents aligned with each file's existing uppercase convention (de API-SCHLÜSSEL/BASIS-URL, it CHIAVE API, tr API ANAHTARI, es CLAVE 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.

… 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.
@dosubot dosubot Bot added size:XL This PR changes 500-999 lines, ignoring generated files. 🧰 typescript Pull requests that update Typescript code labels Jul 20, 2026
@euvre euvre added the ci Continue Integration label Jul 20, 2026
@coderabbitai

coderabbitai Bot commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Updated 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.

Changes

Localization terminology normalization

Layer / File(s) Summary
Provider credential and URL terminology
web/src/locales/*
Standardizes API KEY, BASE URL, ACCESS KEY, SECRET KEY, API SECRET, and provider-specific credential labels and prompts.
Connector, search, and webhook labels
web/src/locales/*
Updates connector help text, REST API validation messages, search placeholders, component descriptions, and webhook labels.
Spanish prompt punctuation and labels
web/src/locales/es.ts
Removes trailing exclamation marks from prompts and messages and capitalizes the secret-key label.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: yooxdb, magicbook1108

Poem

I’m a rabbit with keys in a row,
Making URLs and secrets all glow.
No keys were removed,
Just their casing improved,
While punctuation hopped off in the snow.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the main change: standardizing locale strings for model provider labels.
Description check ✅ Passed The description follows the required Summary template and clearly explains the purpose, scope, and impact of the string-only changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@euvre
euvre requested a review from wangq8 July 20, 2026 10:48

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between aff9ff6 and 38b3a0c.

📒 Files selected for processing (16)
  • web/src/locales/ar.ts
  • web/src/locales/bg.ts
  • web/src/locales/de.ts
  • web/src/locales/en.ts
  • web/src/locales/es.ts
  • web/src/locales/fr.ts
  • web/src/locales/id.ts
  • web/src/locales/it.ts
  • web/src/locales/ja.ts
  • web/src/locales/ko.ts
  • web/src/locales/pt-br.ts
  • web/src/locales/ru.ts
  • web/src/locales/tr.ts
  • web/src/locales/vi.ts
  • web/src/locales/zh-traditional.ts
  • web/src/locales/zh.ts

Comment thread web/src/locales/de.ts Outdated
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)',

@coderabbitai coderabbitai Bot Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 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: Change manage-API KEY to manage-api-key.
  • web/src/locales/en.ts#L2189-L2189: Change manage-API KEY to manage-api-key.
  • web/src/locales/ru.ts#L1557-L1557: Change manage-API KEY to manage-api-key.
  • web/src/locales/ko.ts#L1888-L1888: Change manage-API KEY to manage-api-key.
  • web/src/locales/ar.ts#L1386-L1386: Change manage-API KEY to manage-api-key.
📍 Affects 5 files
  • web/src/locales/de.ts#L1481-L1481 (this comment)
  • web/src/locales/en.ts#L2189-L2189
  • web/src/locales/ru.ts#L1557-L1557
  • web/src/locales/ko.ts#L1888-L1888
  • web/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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧩 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.ts

Length 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.

Comment thread web/src/locales/es.ts
arabic: 'Árabe',
language: 'Idioma',
languageMessage: '¡Por favor ingresa tu idioma!',
languageMessage: '¡Por favor ingresa tu idioma',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 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 ¡ from languageMessage.
  • web/src/locales/es.ts#L41-L42: remove the opening ¡ from loginDescription and registerDescription.
  • web/src/locales/es.ts#L76-L76: remove the opening ¡ from namePlaceholder.
  • web/src/locales/es.ts#L86-L86: remove the opening ¡ from namePlaceholder.
  • web/src/locales/es.ts#L116-L116: remove the opening ¡ from testTextPlaceholder.
  • web/src/locales/es.ts#L143-L143: remove the opening ¡ from taskPageSizeMessage.
  • web/src/locales/es.ts#L220-L220: remove the opening ¡ from systemMessage.
  • web/src/locales/es.ts#L233-L233: remove the opening ¡ from modelMessage.
  • web/src/locales/es.ts#L289-L289: remove the opening ¡ from tokenError.
  • 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 ¡ from modelNameMessage and modelTypeMessage.
  • 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-L42
  • web/src/locales/es.ts#L76-L76
  • web/src/locales/es.ts#L86-L86
  • web/src/locales/es.ts#L116-L116
  • web/src/locales/es.ts#L143-L143
  • web/src/locales/es.ts#L220-L220
  • web/src/locales/es.ts#L233-L233
  • web/src/locales/es.ts#L289-L289
  • web/src/locales/es.ts#L333-L356
  • web/src/locales/es.ts#L407-L409
  • web/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 wangq8 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 KEY in apiKeyPlaceholder reads 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.

@wangq8
wangq8 merged commit bfd5e84 into infiniflow:main Jul 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:XL This PR changes 500-999 lines, ignoring generated files. 🧰 typescript Pull requests that update Typescript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants