-
Notifications
You must be signed in to change notification settings - Fork 105
Fix yaml apply error #257
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
Fix yaml apply error #257
Conversation
添加i18n-jsautotranslate库用于实现页面内容的自动翻译功能 在布局组件中初始化翻译服务并设置DOM更新监听
为退出菜单项添加字体图标 添加语言切换功能组件(暂时注释掉) 初始化时开启office翻译面板和全文提取功能
- 在工具栏中添加语言切换下拉菜单,支持中英文切换 - 调整浮动工具栏右侧间距从40px改为60px - 移除布局组件中注释掉的代码
- 在ToolBar组件中添加ignore类名避免事件冒泡 - 在App组件中设置默认语言为简体中文 - 移除未使用的LangLink组件
移除硬编码的中文繁体翻译配置,改为从外部文件导入英文翻译配置,提高可维护性
移除注释掉的none和giteeAI通道选项,明确使用client.edge作为翻译通道
将YAML解析逻辑重构为直接解析到map类型,再赋值给Unstructured对象,避免不必要的中间对象创建
Caution Review failedThe pull request is closed. 📝 WalkthroughSummary by CodeRabbit
Walkthrough本次更新主要引入了前端国际化能力,通过新增 Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Toolbar
participant I18nProvider as I18nTranslateProvider
participant Window
User->>Toolbar: 点击语言切换菜单
Toolbar->>Window: 调用 window.translate.changeLanguage
Window->>I18nProvider: 触发语言切换
I18nProvider->>Window: 更新页面语言
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (6)
✨ Finishing Touches
🧪 Generate unit tests
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 (
|
修复yaml apply error