One source key changes
Smart detection isolates the delta before any provider call.
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直接插入创建拉取请求。
每次跑步只选一个医生。每个 SDK 都由其官方 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 - - 和一个工作流程文件。剩下的则由资源翻译器处理。