Skip to content

fix(app): localize v2 prompt input placeholder#30681

Open
ulises-jeremias wants to merge 4 commits into
anomalyco:devfrom
ulises-jeremias:fix/app-i18n-v2-design-placeholder
Open

fix(app): localize v2 prompt input placeholder#30681
ulises-jeremias wants to merge 4 commits into
anomalyco:devfrom
ulises-jeremias:fix/app-i18n-v2-design-placeholder

Conversation

@ulises-jeremias

@ulises-jeremias ulises-jeremias commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #30375

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

In v2 layout mode, the prompt input used a hardcoded English placeholder:

Ask anything, / for commands, @ for context...

That bypassed i18n and remained English for non-English users.

This PR replaces the hardcoded string with a localized key:

  • language.t("prompt.placeholder.simple")

So the placeholder now follows the active UI language.

How did you verify your code works?

  • bun typecheck (from packages/app)
  • bun test src/components/prompt-input/placeholder.test.ts (from packages/app)

Screenshots / recordings

Not included.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added contributor needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Jun 4, 2026
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot removed needs:issue needs:compliance This means the issue will auto-close after 2 hours. labels Jun 4, 2026
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@LifetimeVip

Copy link
Copy Markdown

@adamdotdevin 这个 PR 改动很小(+1/-1),能否帮忙 review 一下?谢谢

@LifetimeVip

Copy link
Copy Markdown

@adamdotdevin ���ã�PR #30681��fixes #30375��Ŀǰ��Ȼ OPEN���ܷ��������� review�������Ķ���С��+1/-1����ֻ�ǰ�д����Ӣ�� placeholder �滻Ϊ i18n key��

* upstream/dev: (546 commits)
  chore: update nix node_modules hashes
  feat(oauth): unify OAuth callback browser pages (anomalyco#34025)
  chore: generate
  refactor(app): replace tab drag handling with dndkit (anomalyco#33880)
  refactor(app): use dropdown for project selector (anomalyco#33984)
  chore: update nix node_modules hashes
  fix(app): bump ghostty-web to prevent terminal resize hangs (anomalyco#34020)
  chore: generate
  feat(sdk): expose active sessions (anomalyco#33991)
  fix(sdk): wake embedded session execution (anomalyco#33992)
  refactor(opencode): stop legacy v2 event emission (anomalyco#33993)
  fix(ui): normalize tooltip trigger layout (anomalyco#33979)
  fix(app): suspend hidden terminal renderer (anomalyco#33990)
  fix(app): enable auto-accept in session settings (anomalyco#33974)
  tweak: hide MCP access token prefix (anomalyco#33711)
  fix(core): refine small model defaults (anomalyco#33926)
  feat(core): split MCP timeout configuration (anomalyco#33977)
  fix(app): simplify question prompt (anomalyco#33968)
  feat(llm): pass strict through tool definitions for Codex parity (anomalyco#33392)
  chore: generate
  ...
@ulises-jeremias

Copy link
Copy Markdown
Contributor Author

@adamdotdevin @Hona @Brendonovich

Rebased onto latest dev (merge commit pushed). CI should re-run shortly — would appreciate a review when you have a moment. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hardcoded English string in prompt input placeholder when new layout designs are enabled (Windows Desktop)

2 participants