Skip to content

feat(i18n): extract en translations — session area#1249

Merged
src-opn merged 4 commits intodifferent-ai:devfrom
johnnyshields:i18n-conversion-2
Apr 3, 2026
Merged

feat(i18n): extract en translations — session area#1249
src-opn merged 4 commits intodifferent-ai:devfrom
johnnyshields:i18n-conversion-2

Conversation

@johnnyshields
Copy link
Copy Markdown
Contributor

@johnnyshields johnnyshields commented Mar 31, 2026

Summary

  • Extract hardcoded English strings to i18n keys for the session area
  • Files: composer, context-panel, inbox-panel, message-list, sidebar, workspace-session-list, status-bar, session page, share-workspace
  • ~459 new en.ts translation keys added
  • Adds params interpolation support to t() function in i18n/index.ts

What changed

  • All user-facing strings replaced with t("key") calls — including tool headline labels (Run/Reviewed/Updated/Searched), subagent status, permission prompts, toasts, placeholders
  • Uses {param} interpolation for dynamic values (counts, file names, command names)
  • Second pass caught ~132 additional strings missed by the reference extraction

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, Comment, Open in v0 Apr 3, 2026 6:27pm

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 31, 2026

@johnnyshields is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@src-opn
Copy link
Copy Markdown
Collaborator

src-opn commented Apr 1, 2026

Would love to merge this, can you please rebase

@johnnyshields
Copy link
Copy Markdown
Contributor Author

@src-opn rebased -- I'll keep rebasing until all PRs are merged, as each one is quite large.

johnnyshields and others added 4 commits April 3, 2026 11:25
Extract hardcoded English strings to i18n keys for:
- composer, context-panel, inbox-panel, message-list
- sidebar, workspace-session-list, status-bar, session page
- share-workspace (session share modal logic)
- i18n/index.ts: add params interpolation support to t()

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Thorough scan of all 8 session-area files for any missed strings:

- composer.tsx: attachments notices, file size errors, upload success/fail,
  paste warning, placeholder text, behavior label, remote worker hint
- context-panel.tsx: open file tooltip with path param
- inbox-panel.tsx: copy path toast, download failed fallback
- message-list.tsx: all tool headline labels (run/read/write/search/delegate),
  subagent status labels, open session button, step row label
- sidebar.tsx: remove workspace button, no sessions empty state
- workspace-session-list.tsx: workspace fallback, connecting label
- session.tsx: provider auth/connected toasts, quick actions titles,
  search conversation titles, menu label, undo/redo labels, rename modal
- share-workspace.ts: collaborator token label, desktop required placeholder,
  starting server hint, worker URL hints, owner permission hint

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@src-opn src-opn force-pushed the i18n-conversion-2 branch from c23fd93 to d6a4dc6 Compare April 3, 2026 18:27
@src-opn src-opn merged commit 3271af4 into different-ai:dev Apr 3, 2026
9 of 13 checks passed
benjaminshafii added a commit that referenced this pull request Apr 4, 2026
benjaminshafii added a commit that referenced this pull request Apr 4, 2026
* Revert "fix(i18n/zh): cleanups to Chinese translations (#1341)"

This reverts commit 03ee1f2.

* Revert "feat(i18n): add Thai language + missing translations for all other locales (#1339)"

This reverts commit db0f94e.

* Revert "feat(i18n): extract en translations — session area (#1249)"

This reverts commit 3271af4.

* Revert "feat(i18n): extract en translations — pages (#1250)"

This reverts commit e006aca.

* Revert "feat(i18n): extract en translations — context/lib/misc (#1251)"

This reverts commit c349413.
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.

2 participants