From a30945312aaf875b6db6f634cc7e5262e0921e71 Mon Sep 17 00:00:00 2001 From: NanoNova Date: Fri, 21 Mar 2025 11:14:40 +0800 Subject: [PATCH] fix: typos (#16385) --- .github/DISCUSSION_TEMPLATE/general.yml | 2 +- .github/DISCUSSION_TEMPLATE/help.yml | 2 +- .github/DISCUSSION_TEMPLATE/suggestion.yml | 2 +- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- .github/ISSUE_TEMPLATE/document_issue.yml | 2 +- .github/ISSUE_TEMPLATE/feature_request.yml | 2 +- .github/ISSUE_TEMPLATE/tracker.yml | 2 +- .github/ISSUE_TEMPLATE/translation_issue.yml | 4 ++-- api/core/model_runtime/README_CN.md | 2 +- docker/.env.example | 4 ++-- docker/README.md | 4 ++-- web/i18n/en-US/app-debug.ts | 2 +- web/i18n/en-US/login.ts | 2 +- web/i18n/zh-Hans/app-overview.ts | 2 +- web/i18n/zh-Hant/app-overview.ts | 2 +- 15 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/DISCUSSION_TEMPLATE/general.yml b/.github/DISCUSSION_TEMPLATE/general.yml index 487d719c85..176b207db4 100644 --- a/.github/DISCUSSION_TEMPLATE/general.yml +++ b/.github/DISCUSSION_TEMPLATE/general.yml @@ -9,7 +9,7 @@ body: required: true - label: I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). required: true - - label: "[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)" + - label: "[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)" required: true - label: "Please do not modify this template :) and fill in all the required fields." required: true diff --git a/.github/DISCUSSION_TEMPLATE/help.yml b/.github/DISCUSSION_TEMPLATE/help.yml index 86de4057ae..85c0debb82 100644 --- a/.github/DISCUSSION_TEMPLATE/help.yml +++ b/.github/DISCUSSION_TEMPLATE/help.yml @@ -9,7 +9,7 @@ body: required: true - label: I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). required: true - - label: "[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)" + - label: "[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)" required: true - label: "Please do not modify this template :) and fill in all the required fields." required: true diff --git a/.github/DISCUSSION_TEMPLATE/suggestion.yml b/.github/DISCUSSION_TEMPLATE/suggestion.yml index fa1b4e0251..86b5b3e98b 100644 --- a/.github/DISCUSSION_TEMPLATE/suggestion.yml +++ b/.github/DISCUSSION_TEMPLATE/suggestion.yml @@ -9,7 +9,7 @@ body: required: true - label: I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). required: true - - label: "[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)" + - label: "[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)" required: true - label: "Please do not modify this template :) and fill in all the required fields." required: true diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index f767e8ba32..a9580a3ba3 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -14,7 +14,7 @@ body: required: true - label: I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). required: true - - label: "[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)" + - label: "[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)" required: true - label: "Please do not modify this template :) and fill in all the required fields." required: true diff --git a/.github/ISSUE_TEMPLATE/document_issue.yml b/.github/ISSUE_TEMPLATE/document_issue.yml index db8be32d95..8fdbc0fb9a 100644 --- a/.github/ISSUE_TEMPLATE/document_issue.yml +++ b/.github/ISSUE_TEMPLATE/document_issue.yml @@ -12,7 +12,7 @@ body: required: true - label: I confirm that I am using English to submit report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). required: true - - label: "[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)" + - label: "[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)" required: true - label: "Please do not modify this template :) and fill in all the required fields." required: true diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index f6764d35ad..b1952c63a9 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -12,7 +12,7 @@ body: required: true - label: I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). required: true - - label: "[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)" + - label: "[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)" required: true - label: "Please do not modify this template :) and fill in all the required fields." required: true diff --git a/.github/ISSUE_TEMPLATE/tracker.yml b/.github/ISSUE_TEMPLATE/tracker.yml index 8085b7f706..35fedefc75 100644 --- a/.github/ISSUE_TEMPLATE/tracker.yml +++ b/.github/ISSUE_TEMPLATE/tracker.yml @@ -1,5 +1,5 @@ name: "👾 Tracker" -description: For inner usages, please donot use this template. +description: For inner usages, please do not use this template. title: "[Tracker] " labels: - tracker diff --git a/.github/ISSUE_TEMPLATE/translation_issue.yml b/.github/ISSUE_TEMPLATE/translation_issue.yml index 5d2f020f45..f9c2dfb7d2 100644 --- a/.github/ISSUE_TEMPLATE/translation_issue.yml +++ b/.github/ISSUE_TEMPLATE/translation_issue.yml @@ -1,5 +1,5 @@ name: "🌐 Localization/Translation issue" -description: Report incorrect translations. [please use English :)] +description: Report incorrect translations. [please use English :)] labels: - translation body: @@ -12,7 +12,7 @@ body: required: true - label: I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). required: true - - label: "[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)" + - label: "[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)" required: true - label: "Please do not modify this template :) and fill in all the required fields." required: true diff --git a/api/core/model_runtime/README_CN.md b/api/core/model_runtime/README_CN.md index 3664fa2ca3..27286ac885 100644 --- a/api/core/model_runtime/README_CN.md +++ b/api/core/model_runtime/README_CN.md @@ -10,7 +10,7 @@ - 支持 5 种模型类型的能力调用 - `LLM` - LLM 文本补全、对话,预计算 tokens 能力 - - `Text Embedidng Model` - 文本 Embedding ,预计算 tokens 能力 + - `Text Embedding Model` - 文本 Embedding ,预计算 tokens 能力 - `Rerank Model` - 分段 Rerank 能力 - `Speech-to-text Model` - 语音转文本能力 - `Text-to-speech Model` - 文本转语音能力 diff --git a/docker/.env.example b/docker/.env.example index b295f5cdf0..6efad1bc9c 100644 --- a/docker/.env.example +++ b/docker/.env.example @@ -68,7 +68,7 @@ DEBUG=false # which is convenient for debugging. FLASK_DEBUG=false -# A secretkey that is used for securely signing the session cookie +# A secret key that is used for securely signing the session cookie # and encrypting sensitive information on the database. # You can generate a strong key using `openssl rand -base64 42`. SECRET_KEY=sk-9f73s3ljTXVcMT3Blb3ljTqtsKiGHXVcMT3BlbkFJLK7U @@ -76,7 +76,7 @@ SECRET_KEY=sk-9f73s3ljTXVcMT3Blb3ljTqtsKiGHXVcMT3BlbkFJLK7U # Password for admin user initialization. # If left unset, admin user will not be prompted for a password # when creating the initial admin account. -# The length of the password cannot exceed 30 charactors. +# The length of the password cannot exceed 30 characters. INIT_PASSWORD= # Deployment environment. diff --git a/docker/README.md b/docker/README.md index c3cd1f9e3c..20d5cce913 100644 --- a/docker/README.md +++ b/docker/README.md @@ -27,7 +27,7 @@ Welcome to the new `docker` directory for deploying Dify using Docker Compose. T - Execute `docker compose up` from the `docker` directory to start the services. - To specify a vector database, set the `VECTOR_STORE` variable in your `.env` file to your desired vector database service, such as `milvus`, `weaviate`, or `opensearch`. 4. **SSL Certificate Setup**: - - Rrefer `docker/certbot/README.md` to set up SSL certificates using Certbot. + - Refer `docker/certbot/README.md` to set up SSL certificates using Certbot. ### How to Deploy Middleware for Developing Dify @@ -54,7 +54,7 @@ For users migrating from the `docker-legacy` setup: - **Vector Database Services**: Depending on the type of vector database used (`VECTOR_STORE`), users can set specific endpoints, ports, and authentication details. - **Storage Services**: Depending on the storage type (`STORAGE_TYPE`), users can configure specific settings for S3, Azure Blob, Google Storage, etc. -- **API and Web Services**: Users can define URLs and other settings that affect how the API and web frontends operate. +- **API and Web Services**: Users can define URLs and other settings that affect how the API and web frontend operate. #### Other notable variables diff --git a/web/i18n/en-US/app-debug.ts b/web/i18n/en-US/app-debug.ts index 6d9e6d9a45..00f681f843 100644 --- a/web/i18n/en-US/app-debug.ts +++ b/web/i18n/en-US/app-debug.ts @@ -481,7 +481,7 @@ const translation = { }, retrieveMultiWay: { title: 'Multi-path retrieval', - description: 'Based on user intent, queries across all Knowledge, retrieves relevant text from multi-sources, and selects the best results matching the user query after reranking. ', + description: 'Based on user intent, queries across all Knowledge, retrieves relevant text from multi-sources, and selects the best results matching the user query after reranking.', }, rerankModelRequired: 'A configured Rerank Model is required', params: 'Params', diff --git a/web/i18n/en-US/login.ts b/web/i18n/en-US/login.ts index 5ff7b80b4e..f7d717197b 100644 --- a/web/i18n/en-US/login.ts +++ b/web/i18n/en-US/login.ts @@ -19,7 +19,7 @@ const translation = { setAdminAccountDesc: 'Maximum privileges for admin account, which can be used to create applications and manage LLM providers, etc.', createAndSignIn: 'Create and sign in', oneMoreStep: 'One more step', - createSample: 'Based on this information, we’ll create sample application for you', + createSample: 'Based on this information, we\'ll create sample application for you', invitationCode: 'Invitation Code', invitationCodePlaceholder: 'Your invitation code', interfaceLanguage: 'Interface Language', diff --git a/web/i18n/zh-Hans/app-overview.ts b/web/i18n/zh-Hans/app-overview.ts index 5232fc0c63..32b2639f38 100644 --- a/web/i18n/zh-Hans/app-overview.ts +++ b/web/i18n/zh-Hans/app-overview.ts @@ -106,7 +106,7 @@ const translation = { step2Tip: '点击此处将仓库导入到 Vercel 中部署', step2Operation: '导入仓库', step3: '配置环境变量', - step3Tip: '在 Vecel 环境变量中添加以下环境变量', + step3Tip: '在 Vercel 环境变量中添加以下环境变量', }, way2: { name: '编写客户端调用 API 并部署到服务器中', diff --git a/web/i18n/zh-Hant/app-overview.ts b/web/i18n/zh-Hant/app-overview.ts index e7870d90c7..cbe2eb504c 100644 --- a/web/i18n/zh-Hant/app-overview.ts +++ b/web/i18n/zh-Hant/app-overview.ts @@ -105,7 +105,7 @@ const translation = { step2Tip: '點選此處將倉庫匯入到 Vercel 中部署', step2Operation: '匯入倉庫', step3: '配置環境變數', - step3Tip: '在 Vecel 環境變數中新增以下環境變數', + step3Tip: '在 Vercel 環境變數中新增以下環境變數', }, way2: { name: '編寫客戶端呼叫 API 並部署到伺服器中',