-
Notifications
You must be signed in to change notification settings - Fork 7
feat: add node translation editor for i18n management #179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request introduces a comprehensive node translation editor feature that enables authenticated users to manage translations for ComfyUI custom nodes. The implementation provides a user-friendly interface for translating node metadata into multiple supported languages with dynamic field management capabilities.
- Adds new translation editor page at
/nodes/[nodeId]/i18n
with authentication protection - Implements comprehensive Storybook stories covering various states (loading, errors, existing translations)
- Provides detailed documentation explaining the feature's functionality and technical implementation
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
File | Description |
---|---|
pages/nodes/[nodeId]/i18n.tsx | Main translation editor component with language selection, field management, and save functionality |
src/stories/pages/NodeTranslationEditor.stories.tsx | Comprehensive Storybook stories demonstrating different editor states and scenarios |
docs/node-translation-editor.md | Complete feature documentation covering usage, technical implementation, and API integration |
00cf1de
to
c01659f
Compare
- Add /nodes/[nodeId]/i18n page for editing node translations - Implement translation interface with language selection and field editing - Support for adding custom translation fields beyond default ones - Include comprehensive error handling and success feedback - Add Storybook stories with various scenarios and mock data - Document feature implementation and usage in docs/ 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
… rendering to proper type
- Add /nodes/[nodeId]/i18n page for editing node translations - Implement translation interface with language selection and field editing - Support for adding custom translation fields beyond default ones - Include comprehensive error handling and success feedback - Add Storybook stories with various scenarios and mock data - Document feature implementation and usage in docs/ 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
… rendering to proper type
c01659f
to
2763261
Compare
Added translation management functionality for custom nodes: - New translation editor pages at /nodes/[nodeId]/i18n and /nodes/[nodeId]/translations - Edit translations button in NodeDetails component - Support for multi-language node metadata editing - Language selection with native and localized names - Field-based translation editing with add/remove capabilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Updated NodeTranslationEditor stories to include permission endpoint mocks, ensuring stories render correctly with edit permissions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Summary
/nodes/[nodeId]/i18n
for editing node translationsTest plan
🤖 Generated with Claude Code