Skip to content

fix(i18n): translate the reasoning effort setting and its notice - #597

Merged
Leo310 merged 1 commit into
mainfrom
fix/i18n-reasoning-effort
Nov 26, 2026
Merged

Leo310 merged 1 commit into
mainfrom
fix/i18n-reasoning-effort

Conversation

@Leo310

@Leo310 Leo310 commented Nov 26, 2026

Copy link
Copy Markdown
Member

What

The Agent editor's Reasoning effort row (#582) was hardcoded English: its name, its description, and the four options (Model default / Low / Medium / High). So was the notice offered when a model rejects the effort ("… doesn't accept a reasoning effort." with Use model default). Users on the ten other UI languages saw English in the middle of a translated editor. All of it now goes through t():

  • agents.editor.reasoning_effort_{name,desc,default,low,medium,high}, placed after the context-window keys.
  • plugin.agent.reasoning_effort_{rejected,use_default}, next to the other agent notices. rejected takes {model}.

Translations follow each locale's existing conventions: its word for "tokens", its quotation marks („…“, «…», 「…」, “…”), and its formal or informal "you". The description quotes the translated "Model default" option label, so the two always match. The translations are machine-made, like the rest of the catalog (#579).

How I tested it

bun run check, format, lint and test (2449) pass, bun run build passes, and madge reports no import cycles (reasoningEffortErrors.ts now imports i18n). The catalog tests check that every locale has every key with matching placeholders. Not tried in a live vault.

AI assistance: Claude Code found the hardcoded strings, moved them into the catalogs and wrote the ten translations from Leo's one-line brief; Leo reviews.

Checklist

  • bun run check, bun run format, bun run lint, and bun run test pass locally
  • I tried the change in a real Obsidian vault (or explained above why that isn't applicable)
  • I read CONTRIBUTING.md, including the section on AI assistance
  • If this adds a provider, a bundled skill, a built-in tool, or changes manifest.json: I noted that the docs site needs updating (see "Documentation" in CONTRIBUTING.md)

The Agent editor's Reasoning effort row (name, description, the four
options) and the notice offered when a model rejects the effort were
hardcoded English, so they stayed English in the ten other UI languages.
They now go through t(), with translations in every locale.

Co-Authored-By: Claude <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · This PR appears safe to merge; the translations preserve the setting values and reset behavior.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge; the translations preserve the setting values and reset behavior.

Summary

Routes the reasoning-effort setting and reset notice through t().

  • The Agent editor shows the Reasoning effort setting in the selected language.
  • The notice for a rejected reasoning effort uses the selected language.

Reviews (1) · Last reviewed commit: "fix(i18n): translate the reasoning effor..." · Reviewed by Greptile

@Leo310
Leo310 merged commit 2378608 into main Nov 26, 2026
3 checks passed
@Leo310
Leo310 deleted the fix/i18n-reasoning-effort branch November 26, 2026 20:18
Leo310 added a commit that referenced this pull request Nov 26, 2026
Translates the Agent editor's Reasoning effort setting and the notice shown
when a model rejects an effort, which were English in every UI language
(#597).

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant