Skip to content

feat(i18n): add English localization for UI components#286

Open
vbp1 wants to merge 7 commits intohangwin:masterfrom
vbp1:feat/i18n-localization
Open

feat(i18n): add English localization for UI components#286
vbp1 wants to merge 7 commits intohangwin:masterfrom
vbp1:feat/i18n-localization

Conversation

@vbp1
Copy link

@vbp1 vbp1 commented Jan 22, 2026

Summary

  • Change default locale from zh_CN to en for better international accessibility
  • Localize agent-chat components (AgentComposer, AgentTopBar, etc.)
  • Localize popup and sidepanel UI strings
  • Localize ElementMarkerManagement and SidepanelNavigator
  • Localize element marker context menu items
  • Localize loading texts and workflow status messages
  • Refactor: replace m() helper with direct getMessage() calls for consistency

Changes

  • Added English translations for all UI strings in _locales/en/messages.json
  • Updated components to use getMessage() for internationalization
  • Set English as the default locale

vbp1 added 7 commits January 22, 2026 21:54
When browser locale cannot be detected, fallback to English instead of Chinese.
Replace hardcoded strings with i18n keys in agent-chat components:
- AgentComposer.vue: status texts, tooltips, confirmations
- AgentProjectMenu.vue: settings labels, tooltips, buttons
- AgentSessionListItem.vue: session names, time labels, actions
- AgentSessionsView.vue: search, buttons, empty states
- AgentSettingsMenu.vue: menu section labels
- AgentTopBar.vue: connection states, tooltips

Add corresponding i18n keys to both en and zh_CN locales.
Localize remaining hardcoded Chinese strings in user-facing UI:
- sidepanel/App.vue: Element Marker feature UI (search, modals, stats, actions)
- popup/App.vue: quick tools section, management entries, coming soon toast
- LocalModelPage.vue: back button and page title
Localize remaining hardcoded Chinese strings in user-facing UI:
- ElementMarkerManagement.vue: form labels, buttons, placeholders
- SidepanelNavigator.vue: menu title, navigation items tooltips
Unify i18n usage pattern across all Vue components by removing
the m() shorthand helper and using getMessage() directly everywhere.
@axisrow
Copy link

axisrow commented Feb 4, 2026

approve

@oshliaer
Copy link

2026-02-22_23-02-39

like a charm

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.

3 participants