Skip to content

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

Open
johnnyshields wants to merge 2 commits intodifferent-ai:devfrom
johnnyshields:i18n-conversion-4
Open

feat(i18n): extract en translations — context/lib/misc#1251
johnnyshields wants to merge 2 commits intodifferent-ai:devfrom
johnnyshields:i18n-conversion-4

Conversation

@johnnyshields
Copy link
Copy Markdown
Contributor

@johnnyshields johnnyshields commented Mar 31, 2026

Summary

  • Extract hardcoded English strings to i18n keys for context, lib, and misc components
  • Files: automations.ts (context), providers/store.ts, shared-bundles.ts, mcp-auth-modal, onboarding-workspace-selector, question-modal
  • ~82 new en.ts translation keys added
  • Adds params interpolation support to t() function in i18n/index.ts

What changed

  • providers/store.ts — all error/status messages (auth failed, rate limit, provider errors with {provider} interpolation)
  • shared-bundles.ts — titles, descriptions, validation errors (invalid_url, url_must_be_https)
  • automations.ts (context) — server status messages, validation errors
  • mcp-auth-modal — auth flow strings (already_connected, authorization link, timeout)
  • question-modal — counter, navigation, submit/next buttons
  • LLM prompt templates intentionally left as-is (AI prompts, not UI strings)

@vercel
Copy link
Copy Markdown

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 2, 2026 9:16am

@vercel
Copy link
Copy Markdown

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:

@johnnyshields
Copy link
Copy Markdown
Contributor Author

@benjaminshafii I've raised 4 I18n PRs with the intention of first converting keys to EN, then translating for all languages (previously I handled the Japanese I18n PR). If you can help merge I'll resolve conflicts as each PR is merged, then when all 4 are done I'll handle the other languages. LMK, thanks!

@src-opn
Copy link
Copy Markdown
Collaborator

src-opn commented Apr 1, 2026

same same, plz rebase

johnnyshields and others added 2 commits April 2, 2026 18:15
Extract hardcoded English strings to i18n keys for:
- automations context, providers store, shared-bundles
- mcp-auth-modal, onboarding-workspace-selector, question-modal

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fix missed strings not covered by reference diff:
- automations: schedule_required, prompt_required, prompt_empty,
  server_unavailable in deleteScheduledJob, failed_to_load in local block,
  provider_id_required (2 missed instances in store.ts)
- mcp-auth-modal: request_timed_out
- question-modal: Submit/Next button labels (common.submit, common.next)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@johnnyshields
Copy link
Copy Markdown
Contributor Author

Rebased, please merge.

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