feat: support i18n for plugin-completion - #248
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis set of changes introduces full internationalization (i18n) support to the completion plugin, restructures localization utilities, and refines type definitions for translation keys and handlers. It also adds comprehensive i18n-aware tests, updates dependencies, and improves documentation and resource normalization in the i18n plugin. Several internal APIs and helpers are updated for context-aware localization. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant CompletionPlugin
participant I18nPlugin
participant CommandContext
User->>CLI: Run CLI with --completion (with locale)
CLI->>CompletionPlugin: Initialize completion (locale-aware)
CompletionPlugin->>I18nPlugin: Load i18n resources for commands
I18nPlugin->>CommandContext: Inject i18n extension/context
CompletionPlugin->>CompletionPlugin: Localize completion suggestions
CompletionPlugin->>User: Output locale-specific completions
Estimated code review effort5 (~150+ minutes) Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (22)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Deploying gunshi with
|
| Latest commit: |
2419f97
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://42f0777d.gunshi.pages.dev |
| Branch Preview URL: | https://fix-i18n-namespaced.gunshi.pages.dev |
@gunshi/bone
@gunshi/definition
gunshi
@gunshi/plugin
@gunshi/plugin-completion
@gunshi/plugin-dryrun
@gunshi/plugin-global
@gunshi/plugin-i18n
@gunshi/plugin-renderer
@gunshi/resources
@gunshi/shared
commit: |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Description
Linked Issues
Additional context
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Documentation
Tests
Chores