From f64c043a4494d51a8c6aa0737294eb89bb2c05cc Mon Sep 17 00:00:00 2001 From: decolua Date: Fri, 6 Mar 2026 12:35:55 +0700 Subject: [PATCH] chore: remove translation script and workflow files --- .github/workflows/translate-readme.yml | 33 ------------------- .gitignore | 1 - .../scripts => scripts}/translate-readme.js | 4 +-- 3 files changed, 2 insertions(+), 36 deletions(-) delete mode 100644 .github/workflows/translate-readme.yml rename {.github/scripts => scripts}/translate-readme.js (98%) diff --git a/.github/workflows/translate-readme.yml b/.github/workflows/translate-readme.yml deleted file mode 100644 index cbe36597..00000000 --- a/.github/workflows/translate-readme.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Translate README - -on: - workflow_dispatch: - -jobs: - translate: - runs-on: ubuntu-latest - permissions: - contents: write - - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Translate README to all languages - env: - GLM_API_KEY: ${{ secrets.GLM_API_KEY }} - run: | - node .github/scripts/translate-readme.js vi zh-CN - - - name: Upload translations as artifact - uses: actions/upload-artifact@v4 - with: - name: translated-readmes - path: i18n/ diff --git a/.gitignore b/.gitignore index 3d18f5cc..b4b1d852 100644 --- a/.gitignore +++ b/.gitignore @@ -55,7 +55,6 @@ RM.vn.md RM.md cursor/* PUBLIC.md -scripts/* Thanks.md PUBLIC.en.md PR/* diff --git a/.github/scripts/translate-readme.js b/scripts/translate-readme.js similarity index 98% rename from .github/scripts/translate-readme.js rename to scripts/translate-readme.js index 75a495d4..af6a11a6 100755 --- a/.github/scripts/translate-readme.js +++ b/scripts/translate-readme.js @@ -125,7 +125,7 @@ ${readmeContent}`; .replace(/