From e3693cb3e18fe764f4c1f47f426f4743f293aa51 Mon Sep 17 00:00:00 2001 From: Quan <787025321@qq.com> Date: Mon, 10 Feb 2025 16:42:22 +0800 Subject: [PATCH 1/2] chore: Change DeepSeek modal --- .github/workflows/docs-commit.translate.yaml | 3 ++- .github/workflows/docs-sync.translate.yaml | 2 +- .github/workflows/docs.translate.dir.yaml | 2 +- .github/workflows/docs.translate.yaml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs-commit.translate.yaml b/.github/workflows/docs-commit.translate.yaml index e6ec78aae5..476e48284e 100644 --- a/.github/workflows/docs-commit.translate.yaml +++ b/.github/workflows/docs-commit.translate.yaml @@ -8,6 +8,7 @@ on: - ".github**/*" - "docs/cn/**/*" - "docs/release-notes/**/*" + - "docs/fragment/**/*" - "docs/release-stable/**/*" - "api/**/*" - "i18n/**/*" @@ -35,7 +36,7 @@ jobs: uses: 3ru/gpt-translate@v1.1.11 with: apikey: ${{ secrets.OPENAI_API_KEY }} - model: "DeepSeek-R1" + model: "DeepSeek-V3" inputFiles: "${{ steps.changed_files.outputs.files }}" outputFiles: "docs/cn/**/*.md" languages: "Simplified-Chinese" diff --git a/.github/workflows/docs-sync.translate.yaml b/.github/workflows/docs-sync.translate.yaml index 5c28e56a7b..443842901f 100644 --- a/.github/workflows/docs-sync.translate.yaml +++ b/.github/workflows/docs-sync.translate.yaml @@ -50,7 +50,7 @@ jobs: uses: 3ru/gpt-translate@v1.1.11 with: apikey: ${{ secrets.OPENAI_API_KEY }} - model: "DeepSeek-R1" + model: "DeepSeek-V3" inputFiles: "${{ steps.check_missing.outputs.missing_md_files }}${{ steps.check_missing.outputs.missing_json_files }}" outputFiles: "docs/cn/**/*.{md,json}" languages: "Simplified-Chinese" diff --git a/.github/workflows/docs.translate.dir.yaml b/.github/workflows/docs.translate.dir.yaml index 1f3c6970d9..550e5c8e39 100644 --- a/.github/workflows/docs.translate.dir.yaml +++ b/.github/workflows/docs.translate.dir.yaml @@ -50,7 +50,7 @@ jobs: uses: 3ru/gpt-translate@v1.1.11 with: apikey: ${{ secrets.OPENAI_API_KEY }} - model: "DeepSeek-R1" + model: "DeepSeek-V3" inputFiles: "${{ steps.check_missing.outputs.missing_md_files }}${{ steps.check_missing.outputs.missing_json_files }}" outputFiles: "docs/cn/**/*.{md,json}" languages: "Simplified-Chinese" diff --git a/.github/workflows/docs.translate.yaml b/.github/workflows/docs.translate.yaml index e4ab99f63f..79b80c1637 100644 --- a/.github/workflows/docs.translate.yaml +++ b/.github/workflows/docs.translate.yaml @@ -17,6 +17,6 @@ jobs: uses: 3ru/gpt-translate@v1.1.11 with: apikey: ${{ secrets.OPENAI_API_KEY }} - model: "DeepSeek-R1" + model: "DeepSeek-V3" prompt: "You are a translation engine that has knowledge of databases and is familiar with SQL, HTML, Markdown and JSON syntax. \ Databend is a cloud-native data warehouse and an alternative to Snowflake. \ I am translating the Databend documentation for helping users.\ Translate the Markdown or JSON content I'll paste later into {targetLanguage}.\ You must strictly follow the rules below.\ - Never change the Markdown markup structure. Don't add or remove links. Do not change any URL.\ - Never change the contents of code blocks even if they appear to have a bug.\ - Always preserve the original line breaks. Do not add or remove blank lines.\ - Never touch the permalink such as `{/*examples*/}` at the end of each heading.\ - Never touch HTML-like tags such as ``.\ - Correctly format the document for best rendering. \ - Please do not translate database or computing-specific terms.\ -Keep the structure consistent with the source document and do not delete anything.\ - if you discover to describe the plan 'Personal', please translate to '基础版'.\ -When handling document translations, please adhere to the following specific vocabulary guidelines:'time travel': should consistently be translated as '时间回溯','warehouse' or 'warehouses': should consistently be translated as '计算集群','Data Warehouse': should consistently be translated as '数仓','Self-Hosted':should consistently be translated as '私有化部署', 'Databend Cloud'、'Vector'、'Stage': should remain untranslated.\ -The key of the json object in '_category_.json' is not translated.\ - Do not include any tags or their contents in the output." basePath: "https://openapi.coreshub.cn/v1" From 05bb7a30c6ae99cc1c7cd03f33f2a153dd1a6c0a Mon Sep 17 00:00:00 2001 From: Quan <787025321@qq.com> Date: Tue, 11 Feb 2025 10:06:22 +0800 Subject: [PATCH 2/2] fix: cn text --- docs/cn/tutorials/programming/_category_.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cn/tutorials/programming/_category_.json b/docs/cn/tutorials/programming/_category_.json index 0578e2daa5..f38b5d6f34 100644 --- a/docs/cn/tutorials/programming/_category_.json +++ b/docs/cn/tutorials/programming/_category_.json @@ -1,3 +1,3 @@ { - "label": "编程语言" + "label": "Databend 驱动" }