Skip to content

IEvangelist/resource-translator

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

270 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌐 Resource Translator

All Contributors

GitHub Marketplace ci CodeQL docs

A GitHub Action that opens machine-translated pull requests for resource files in your repository, powered by Azure AI Translator via Microsoft's official @azure-rest/ai-translation-text SDK β€” built-in retry/throttling, no hand-rolled HTTP clients.

Supported formats: .resx, .xliff, .po, .json, .ini, .restext.

πŸ“š Documentation

Everything lives on the docs site: ievangelist.github.io/resource-translator

πŸš€ Quick start

name: translate

on:
  push:
    branches: [main]
    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
          subscriptionKey: ${{ secrets.AZURE_TRANSLATOR_SUBSCRIPTION_KEY }}
          endpoint: ${{ secrets.AZURE_TRANSLATOR_ENDPOINT }}
          region: ${{ secrets.AZURE_TRANSLATOR_REGION }}
          toLocales: '["es","fr","de"]'

      - if: steps.translator.outputs.has-new-translations == 'true'
        uses: peter-evans/create-pull-request@v7
        with:
          branch: machine-translation
          title: ${{ steps.translator.outputs.summary-title }}
          body: ${{ steps.translator.outputs.summary-details }}
          labels: localization

For all inputs, repo config, glossary, tone/industry control, and recipes, see the full docs.

πŸ”— Project links

✨ Contributors

Thanks goes to these wonderful people (emoji key):

vs-savelich
vs-savelich

πŸ’» ⚠️
Yevgen Nykytenko
Yevgen Nykytenko

πŸ›
Peter Rekdal Khan-Sunde
Peter Rekdal Khan-Sunde

πŸ›
Tim Heuer
Tim Heuer

πŸ› πŸ€” πŸ‘€
Tibor Tompa
Tibor Tompa

πŸ€”
Matteo
Matteo

πŸ’» ⚠️
Jeffrey T. Fritz
Jeffrey T. Fritz

πŸ“–

This project follows the all-contributors specification. Contributions of any kind welcome!

About

A GitHub Action that automatically creates machine-translated PRs of translation files. Supported file formats include, .ini, .po, .restext, .resx, .xliff .json.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

70 stars

Watchers

7 watching

Forks

Sponsor this project

 

Contributors