-
Notifications
You must be signed in to change notification settings - Fork 256
feat: 添加中文模板支持 (Add Chinese Template Support) #109
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -30,6 +30,8 @@ OPTIONS: | |||||||||
| If not specified, uses an ephemeral port | ||||||||||
| --config <path> Use custom config file instead of default location | ||||||||||
| Supports both relative and absolute paths | ||||||||||
| --language <code> Set language for internationalization (e.g., zh, en, ja) | ||||||||||
| Supported languages: en, zh, ja, es, fr, de, it, ko, ar | ||||||||||
|
Comment on lines
+33
to
+34
|
||||||||||
| --language <code> Set language for internationalization (e.g., zh, en, ja) | |
| Supported languages: en, zh, ja, es, fr, de, it, ko, ar | |
| --language <code> Set language for internationalization (e.g., zh, en) | |
| Supported languages: en, zh |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| # 设计文档 | ||
|
|
||
| ## 概述 | ||
|
|
||
| [功能的高级描述及其在整体系统中的位置] | ||
|
|
||
| ## 指导文档一致性 | ||
|
|
||
| ### 技术标准 (tech.md) | ||
| [设计如何遵循文档化的技术模式和标准] | ||
|
|
||
| ### 项目结构 (structure.md) | ||
| [实现将如何遵循项目组织约定] | ||
|
|
||
| ## 代码重用分析 | ||
| [将利用、扩展或与此功能集成的现有代码] | ||
|
|
||
| ### 要利用的现有组件 | ||
| - **[组件/工具名称]**:[将如何使用] | ||
| - **[服务/助手名称]**:[将如何扩展] | ||
|
|
||
| ### 集成点 | ||
| - **[现有系统/API]**:[新功能将如何集成] | ||
| - **[数据库/存储]**:[数据将如何连接到现有模式] | ||
|
|
||
| ## 架构 | ||
|
|
||
| [描述使用的整体架构和设计模式] | ||
|
|
||
| ### 模块化设计原则 | ||
| - **单一文件职责**:每个文件应该处理一个特定的关注点或领域 | ||
| - **组件隔离**:创建小型、专注的组件而不是大型单体文件 | ||
| - **服务层分离**:分离数据访问、业务逻辑和表示层 | ||
| - **工具模块化**:将工具分解为专注的、单一用途的模块 | ||
|
|
||
| ```mermaid | ||
| graph TD | ||
| A[组件A] --> B[组件B] | ||
| B --> C[组件C] | ||
| ``` | ||
|
|
||
| ## 组件和接口 | ||
|
|
||
| ### 组件1 | ||
| - **目的:** [此组件的作用] | ||
| - **接口:** [公共方法/API] | ||
| - **依赖:** [它依赖的内容] | ||
| - **重用:** [它构建的现有组件/工具] | ||
|
|
||
| ### 组件2 | ||
| - **目的:** [此组件的作用] | ||
| - **接口:** [公共方法/API] | ||
| - **依赖:** [它依赖的内容] | ||
| - **重用:** [它构建的现有组件/工具] | ||
|
|
||
| ## 数据模型 | ||
|
|
||
| ### 模型1 | ||
| ``` | ||
| [用您的语言定义Model1的结构] | ||
| - id: [唯一标识符类型] | ||
| - name: [字符串/文本类型] | ||
| - [根据需要添加其他属性] | ||
| ``` | ||
|
|
||
| ### 模型2 | ||
| ``` | ||
| [用您的语言定义Model2的结构] | ||
| - id: [唯一标识符类型] | ||
| - [根据需要添加其他属性] | ||
| ``` | ||
|
|
||
| ## 错误处理 | ||
|
|
||
| ### 错误场景 | ||
| 1. **场景1:** [描述] | ||
| - **处理:** [如何处理] | ||
| - **用户影响:** [用户看到什么] | ||
|
|
||
| 2. **场景2:** [描述] | ||
| - **处理:** [如何处理] | ||
| - **用户影响:** [用户看到什么] | ||
|
|
||
| ## 测试策略 | ||
|
|
||
| ### 单元测试 | ||
| - [单元测试方法] | ||
| - [要测试的关键组件] | ||
|
|
||
| ### 集成测试 | ||
| - [集成测试方法] | ||
| - [要测试的关键流程] | ||
|
|
||
| ### 端到端测试 | ||
| - [E2E测试方法] | ||
| - [要测试的用户场景] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| # 产品概述 | ||
|
|
||
| ## 产品目的 | ||
| [描述此产品/项目的核心目的。它解决了什么问题?] | ||
|
|
||
| ## 目标用户 | ||
| [谁是此产品的主要用户?他们的需求和痛点是什么?] | ||
|
|
||
| ## 关键功能 | ||
| [列出为用户带来价值的主要功能] | ||
|
|
||
| 1. **功能1**:[描述] | ||
| 2. **功能2**:[描述] | ||
| 3. **功能3**:[描述] | ||
|
|
||
| ## 业务目标 | ||
| [此产品旨在实现哪些业务目标?] | ||
|
|
||
| - [目标1] | ||
| - [目标2] | ||
| - [目标3] | ||
|
|
||
| ## 成功指标 | ||
| [我们将如何衡量此产品的成功?] | ||
|
|
||
| - [指标1]:[目标] | ||
| - [指标2]:[目标] | ||
| - [指标3]:[目标] | ||
|
|
||
| ## 产品原则 | ||
| [指导产品决策的核心原则] | ||
|
|
||
| 1. **[原则1]**:[解释] | ||
| 2. **[原则2]**:[解释] | ||
| 3. **[原则3]**:[解释] | ||
|
|
||
| ## 监控与可见性(如适用) | ||
| [用户如何跟踪进度和监控系统?] | ||
|
|
||
| - **仪表板类型**:[例如,基于Web、CLI、桌面应用] | ||
| - **实时更新**:[例如,WebSocket、轮询、推送通知] | ||
| - **显示的关键指标**:[最重要的信息是什么] | ||
| - **共享功能**:[例如,只读链接、导出、报告] | ||
|
|
||
| ## 未来愿景 | ||
| [我们预见此产品在未来将如何发展?] | ||
|
|
||
| ### 潜在增强功能 | ||
| - **远程访问**:[例如,与利益相关者共享仪表板的隧道功能] | ||
| - **分析功能**:[例如,历史趋势、性能指标] | ||
| - **协作功能**:[例如,多用户支持、评论] |
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.
The documentation lists Japanese (
ja) as a supported language in line 114 and in the help text (line 34 of index.ts), but no Japanese templates exist in the codebase. Either add the Japanese templates insrc/markdown/templates/ja/or remove references to Japanese language support from the documentation until templates are available.