Docs: Translate (#6329)

This commit is contained in:
AllenWriter 2024-07-16 15:01:25 +08:00 committed by GitHub
parent 988aa4b5da
commit 55d7374ab7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,7 @@
考虑到我们的现状,我们需要灵活快速地交付,但我们也希望确保像你这样的贡献者在贡献过程中获得尽可能顺畅的体验。我们为此编写了这份贡献指南,旨在让你熟悉代码库和我们与贡献者的合作方式,以便你能快速进入有趣的部分。 考虑到我们的现状,我们需要灵活快速地交付,但我们也希望确保像你这样的贡献者在贡献过程中获得尽可能顺畅的体验。我们为此编写了这份贡献指南,旨在让你熟悉代码库和我们与贡献者的合作方式,以便你能快速进入有趣的部分。
这份指南,就像 Dify 本身一样,是一个不断改进的工作。如果有时它落后于实际项目,我们非常感谢你的理解,并欢迎任何反馈以供我们改进。 这份指南,就像 Dify 本身一样,是一个不断改进的工作。如果有时它落后于实际项目,我们非常感谢你的理解,并欢迎提供任何反馈以供我们改进。
在许可方面,请花一分钟阅读我们简短的 [许可证和贡献者协议](./LICENSE)。社区还遵守 [行为准则](https://github.com/langgenius/.github/blob/main/CODE_OF_CONDUCT.md)。 在许可方面,请花一分钟阅读我们简短的 [许可证和贡献者协议](./LICENSE)。社区还遵守 [行为准则](https://github.com/langgenius/.github/blob/main/CODE_OF_CONDUCT.md)。
@ -20,35 +20,34 @@
根据所提议的功能所属的领域不同,您可能需要与不同的团队成员交流。以下是我们团队成员目前正在从事的各个领域的概述: 根据所提议的功能所属的领域不同,您可能需要与不同的团队成员交流。以下是我们团队成员目前正在从事的各个领域的概述:
| Member | Scope | | 团队成员 | 工作范围 |
| ------------------------------------------------------------ | ---------------------------------------------------- | | ------------------------------------------------------------ | ---------------------------------------------------- |
| [@yeuoly](https://github.com/Yeuoly) | Architecting Agents | | [@yeuoly](https://github.com/Yeuoly) | 架构 Agents |
| [@jyong](https://github.com/JohnJyong) | RAG pipeline design | | [@jyong](https://github.com/JohnJyong) | RAG 流水线设计 |
| [@GarfieldDai](https://github.com/GarfieldDai) | Building workflow orchestrations | | [@GarfieldDai](https://github.com/GarfieldDai) | 构建 workflow 编排 |
| [@iamjoel](https://github.com/iamjoel) & [@zxhlyh](https://github.com/zxhlyh) | Making our frontend a breeze to use | | [@iamjoel](https://github.com/iamjoel) & [@zxhlyh](https://github.com/zxhlyh) | 让我们的前端更易用 |
| [@guchenhe](https://github.com/guchenhe) & [@crazywoola](https://github.com/crazywoola) | Developer experience, points of contact for anything | | [@guchenhe](https://github.com/guchenhe) & [@crazywoola](https://github.com/crazywoola) | 开发人员体验, 综合事项联系人 |
| [@takatost](https://github.com/takatost) | Overall product direction and architecture | | [@takatost](https://github.com/takatost) | 产品整体方向和架构 |
How we prioritize: 事项优先级:
| Feature Type | Priority | | 功能类型 | 优先级 |
| ------------------------------------------------------------ | --------------- | | ------------------------------------------------------------ | --------------- |
| High-Priority Features as being labeled by a team member | High Priority | | 被团队成员标记为高优先级的功能 | 高优先级 |
| Popular feature requests from our [community feedback board](https://github.com/langgenius/dify/discussions/categories/feedbacks) | Medium Priority | | [community feedback board](https://github.com/langgenius/dify/discussions/categories/feedbacks) 内反馈的常见功能请求 | 中等优先级 |
| Non-core features and minor enhancements | Low Priority | | 非核心功能和小幅改进 | 低优先级 |
| Valuable but not immediate | Future-Feature | | 有价值当不紧急 | 未来功能 |
### 其他任何事情(例如 bug 报告、性能优化、拼写错误更正): ### 其他任何事情(例如 bug 报告、性能优化、拼写错误更正):
* 立即开始编码。 * 立即开始编码。
How we prioritize: 事项优先级:
| Issue Type | Priority | | Issue 类型 | 优先级 |
| ------------------------------------------------------------ | --------------- | | ------------------------------------------------------------ | --------------- |
| Bugs in core functions (cannot login, applications not working, security loopholes) | Critical | | 核心功能的 Bugs例如无法登录、应用无法工作、安全漏洞 | 紧急 |
| Non-critical bugs, performance boosts | Medium Priority | | 非紧急 bugs, 性能提升 | 中等优先级 |
| Minor fixes (typos, confusing but working UI) | Low Priority | | 小幅修复(错别字, 能正常工作但存在误导的 UI) | 低优先级 |
## 安装 ## 安装
@ -58,7 +57,7 @@
### 2. 克隆仓库 ### 2. 克隆仓库
从终端克隆fork的仓库: 从终端克隆代码仓库:
``` ```
git clone git@github.com:<github_username>/dify.git git clone git@github.com:<github_username>/dify.git
@ -98,19 +97,19 @@ Dify的后端使用Python编写使用[Flask](https://flask.palletsprojects.co
``` ```
[api/] [api/]
├── constants // Constant settings used throughout code base. ├── constants // 用于整个代码库的常量设置。
├── controllers // API route definitions and request handling logic. ├── controllers // API 路由定义和请求处理逻辑。
├── core // Core application orchestration, model integrations, and tools. ├── core // 核心应用编排、模型集成和工具。
├── docker // Docker & containerization related configurations. ├── docker // Docker 和容器化相关配置。
├── events // Event handling and processing ├── events // 事件处理和处理。
├── extensions // Extensions with 3rd party frameworks/platforms. ├── extensions // 与第三方框架/平台的扩展。
├── fields // field definitions for serialization/marshalling. ├── fields // 用于序列化/封装的字段定义。
├── libs // Reusable libraries and helpers. ├── libs // 可重用的库和助手。
├── migrations // Scripts for database migration. ├── migrations // 数据库迁移脚本。
├── models // Database models & schema definitions. ├── models // 数据库模型和架构定义。
├── services // Specifies business logic. ├── services // 指定业务逻辑。
├── storage // Private key storage. ├── storage // 私钥存储。
├── tasks // Handling of async tasks and background jobs. ├── tasks // 异步任务和后台作业的处理。
└── tests └── tests
``` ```
@ -120,28 +119,28 @@ Dify的后端使用Python编写使用[Flask](https://flask.palletsprojects.co
``` ```
[web/] [web/]
├── app // layouts, pages, and components ├── app // 布局、页面和组件
│ ├── (commonLayout) // common layout used throughout the app │ ├── (commonLayout) // 整个应用通用的布局
│ ├── (shareLayout) // layouts specifically shared across token-specific sessions │ ├── (shareLayout) // 在特定会话中共享的布局
│ ├── activate // activate page │ ├── activate // 激活页面
│ ├── components // shared by pages and layouts │ ├── components // 页面和布局共享的组件
│ ├── install // install page │ ├── install // 安装页面
│ ├── signin // signin page │ ├── signin // 登录页面
│ └── styles // globally shared styles │ └── styles // 全局共享的样式
├── assets // Static assets ├── assets // 静态资源
├── bin // scripts ran at build step ├── bin // 构建步骤运行的脚本
├── config // adjustable settings and options ├── config // 可调整的设置和选项
├── context // shared contexts used by different portions of the app ├── context // 应用中不同部分使用的共享上下文
├── dictionaries // Language-specific translate files ├── dictionaries // 语言特定的翻译文件
├── docker // container configurations ├── docker // 容器配置
├── hooks // Reusable hooks ├── hooks // 可重用的钩子
├── i18n // Internationalization configuration ├── i18n // 国际化配置
├── models // describes data models & shapes of API responses ├── models // 描述数据模型和 API 响应的形状
├── public // meta assets like favicon ├── public // 如 favicon 等元资源
├── service // specifies shapes of API actions ├── service // 定义 API 操作的形状
├── test ├── test
├── types // descriptions of function params and return values ├── types // 函数参数和返回值的描述
└── utils // Shared utility functions └── utils // 共享的实用函数
``` ```
## 提交你的 PR ## 提交你的 PR