From 19846c7e01b434a061e6db96216657b7c79f9262 Mon Sep 17 00:00:00 2001 From: Phantom <59059173+EurFelux@users.noreply.github.com> Date: Fri, 5 Sep 2025 12:07:14 +0800 Subject: [PATCH] ci(github): fix auto-i18n condition (#9921) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ci(github): 修复自动i18n工作流的仓库名称条件 修复条件判断中的仓库名称变量,确保工作流在正确的仓库中运行 * ci(workflow): 简化自动i18n工作流的条件表达式 * fix(translate): fix warn --- .github/workflows/auto-i18n.yml | 2 +- src/renderer/src/pages/translate/TranslatePage.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-i18n.yml b/.github/workflows/auto-i18n.yml index 4011698d79..054dea40e6 100644 --- a/.github/workflows/auto-i18n.yml +++ b/.github/workflows/auto-i18n.yml @@ -13,7 +13,7 @@ on: jobs: auto-i18n: runs-on: ubuntu-latest - if: github.event.pull_request.base.repo.full_name == 'CherryHQ/cherry-studio' + if: github.event.pull_request.head.repo.full_name == 'CherryHQ/cherry-studio' name: Auto I18N permissions: contents: write diff --git a/src/renderer/src/pages/translate/TranslatePage.tsx b/src/renderer/src/pages/translate/TranslatePage.tsx index 66fcb0d9a4..3b242f466f 100644 --- a/src/renderer/src/pages/translate/TranslatePage.tsx +++ b/src/renderer/src/pages/translate/TranslatePage.tsx @@ -664,7 +664,7 @@ const TranslatePage: FC = () => { } setIsProcessing(false) }, - [getSingleFile, isProcessing, processFile, t] + [getSingleFile, isProcessing, processFile, setText, t] ) return (