Skip to content

fix(i18n): localize 4 more TUI components — session delete failed, workspace unavailable, startup loading, autocomplete#860

Open
MrRealORG wants to merge 1 commit into
XiaomiMiMo:mainfrom
MrRealORG:fix/auto-0616-i18n-session-workspace-startup-autocomplete
Open

fix(i18n): localize 4 more TUI components — session delete failed, workspace unavailable, startup loading, autocomplete#860
MrRealORG wants to merge 1 commit into
XiaomiMiMo:mainfrom
MrRealORG:fix/auto-0616-i18n-session-workspace-startup-autocomplete

Conversation

@MrRealORG

Copy link
Copy Markdown

Summary

Localizes 4 additional TUI components that contained hardcoded English strings, adding 15 new i18n keys across all 7 language files.

Changes (11 files)

Components (4 files):

  • dialog-session-delete-failed.tsx — Added useLanguage import. Localized 7 strings: dialog title, session/workspace description (with {{session}}/{{workspace}} interpolation), recovery hint, and delete/restore option titles + descriptions.
  • dialog-workspace-unavailable.tsx — Added useLanguage import. Localized 5 strings: dialog title, description, restore hint, and cancel/restore button labels. Refactored options array to use label objects instead of raw strings for i18n support.
  • startup-loading.tsx — Added useLanguage import. Localized 2 strings: "Finishing startup..." and "Loading plugins...".
  • prompt/autocomplete.tsx — Added useLanguage import and t variable. Localized 1 string: "No matching items" empty state text.

i18n (7 files):

  • Added 15 new keys to each of en.ts, zh.ts, zht.ts, ja.ts, es.ts, fr.ts, ru.ts:
    • tui.session_delete_failed.title / .description / .recovery_hint / .delete.title / .delete.description / .restore.title / .restore.description
    • tui.workspace_unavailable.title / .description / .restore_hint / .cancel / .restore
    • tui.startup.finishing / .loading_plugins
    • tui.autocomplete.no_matching

…rkspace unavailable, startup loading, autocomplete

- dialog-session-delete-failed.tsx: localize title, description (with {{session}}/{{workspace}} interpolation), recovery hint, and 2 option titles+descriptions
- dialog-workspace-unavailable.tsx: localize title, description, restore hint, and cancel/restore button labels
- startup-loading.tsx: localize 'Finishing startup...' and 'Loading plugins...' strings
- prompt/autocomplete.tsx: localize 'No matching items' empty state text
- Add 15 new i18n keys to all 7 language files (en, zh, zht, ja, es, fr, ru)
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