fix: add i18n to status dialog and replace silent session abort catches with logging#805
Open
MrRealORG wants to merge 1 commit into
Open
Conversation
…es with logging
- Add useLanguage() to dialog-status.tsx, replacing 11 hardcoded English strings
with i18n keys (tui.status.*) — covers MCP servers, LSP servers, formatters,
plugins, and connection status messages
- Add 12 i18n keys to en.ts and zh.ts with {{count}}/{{name}} interpolation
- Replace 2 silent .catch(() => {}) in routes/session/index.tsx with log.warn
for session abort failures (exit path + undo/revert path)
- Also fix 'opencode mcp auth' → 'mimo mcp auth' in status dialog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
i18n + code quality improvements
Status dialog i18n (dialog-status.tsx)
useLanguage()import andt()calls for all 11 user-facing strings{{count}}interpolation for plural labels (e.g. "{{count}} MCP Servers"){{name}}interpolation for the auth command hintopencode mcp auth→mimo mcp authin the needs-auth messagei18n keys (en.ts + zh.ts)
tui.status.*namespaceSession abort logging (routes/session/index.tsx)
.catch(() => {})withlog.warn():Logimport and logger creationFiles changed
dialog-status.tsx: 26 insertions, 15 deletions (i18n + import)en.ts: 16 insertions, 1 deletion (12 new keys)zh.ts: 15 insertions (12 new keys)session/index.tsx: 6 insertions, 2 deletions (import + logger + 2 catches)