From 926a9dcac6e66a2202d851874690b1e6c136ba2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sat, 15 Aug 2026 21:14:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96l10n=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/l10n.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/l10n.yml b/.github/workflows/l10n.yml index 998d1ad9..3a310332 100644 --- a/.github/workflows/l10n.yml +++ b/.github/workflows/l10n.yml @@ -42,6 +42,8 @@ jobs: git config user.email "41898282+github-actions[bot]@users.noreply.github.com" ~/go/bin/xgotext -default backend -pkg-tree ./cmd/ace -out ./pkg/embed/locales (cd web && pnpm run gettext:extract) + # extract 会连带重写译文 po,但它们由 Crowdin 托管且折行格式不同,还原以免格式差异淹没真实翻译 + find web/src/locales -name '*.po' ! -name 'en.po' -exec git checkout -- {} + if [ -z "$(git status --porcelain)" ]; then echo "pot 文件无变更,跳过提交" exit 0