One source key changes
Smart detection isolates the delta before any provider call.
為航運而建
将动作置于既有配置项,指向Azure、AWS或Google,令仓库通达所欲语言。
Default in v3.2
A compact .github/resource-translator-state.json tracks parser keys, source hashes, and translation-affecting settings. The action skips stable keys, preserves manual target edits, and logs every decision with rule codes. Use snapshotOnly to bootstrap existing translations without a provider call.
Most runs translate only the changed keys
往返.resx、.xliff、.po、.json、.ini及.restext,格式稳定。
置.github/resource-translator.yml文件以含globs、词汇表及自定义译者类别。
以智能词界正则锁定品牌名与产品名,处理C++、.NET及友人。
可先预览译文而不写文件,或于迭代时显诸错误为警示。
summary-title、summary-details、has-new-translations 皆直入 create-pull-request。
每行择一医者。 各由官方SDK(@azure-rest/ai-translation-text、@aws-sdk/client-translate、@google-cloud/translate)驱动,408/429/5xx自动重试,非手卷HTTP。 esbuild捆,审计洁净。
name: translateon: push: paths: ["**/*.en.resx", "**/*.en.json"]
permissions: contents: write pull-requests: write
jobs: translate: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 - id: translator uses: IEvangelist/resource-translator@v3 with: sourceLocale: en provider: | azure: subscriptionKey: ${{ secrets.KEY }} endpoint: ${{ secrets.ENDPOINT }} region: ${{ secrets.REGION }} toLocales: '["fr","de","es","ja"]'
- uses: peter-evans/create-pull-request@v7 with: title: Update translations一供應商密鑰 - - Azure、AWS或Google - - 及一工作流文件。 餘者由資源翻譯器處理。