{"id":15645743,"url":"https://github.com/ievangelist/resource-translator","last_synced_at":"2025-04-06T18:14:46.970Z","repository":{"id":39573076,"uuid":"279448675","full_name":"IEvangelist/resource-translator","owner":"IEvangelist","description":"A GitHub Action that automatically creates machine-translated PRs of translation files. Supported file formats include, .ini, .po, .restext, .resx, .xliff .json.","archived":false,"fork":false,"pushed_at":"2025-03-08T18:31:25.000Z","size":1700,"stargazers_count":66,"open_issues_count":4,"forks_count":12,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-03-30T16:12:24.752Z","etag":null,"topics":["ai","cognitive-services","github-actions","hacktoberfest","ini","json","localization","machine-translator","portable-object","restext","resx","translation","translation-files","xliff","xliff2"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IEvangelist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"IEvangelist","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2020-07-14T01:17:05.000Z","updated_at":"2025-03-18T18:18:23.000Z","dependencies_parsed_at":"2024-01-05T01:27:31.646Z","dependency_job_id":"d7687005-7704-4fe4-85cf-dd9d392e34ff","html_url":"https://github.com/IEvangelist/resource-translator","commit_stats":{"total_commits":165,"total_committers":7,"mean_commits":"23.571428571428573","dds":0.509090909090909,"last_synced_commit":"14419246e28bf6f8b68b8ca1ecc86a9a6e41e18d"},"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IEvangelist%2Fresource-translator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IEvangelist%2Fresource-translator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IEvangelist%2Fresource-translator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IEvangelist%2Fresource-translator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IEvangelist","download_url":"https://codeload.github.com/IEvangelist/resource-translator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247526763,"owners_count":20953143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","cognitive-services","github-actions","hacktoberfest","ini","json","localization","machine-translator","portable-object","restext","resx","translation","translation-files","xliff","xliff2"],"created_at":"2024-10-03T12:09:34.277Z","updated_at":"2025-04-06T18:14:46.944Z","avatar_url":"https://github.com/IEvangelist.png","language":"TypeScript","funding_links":["https://github.com/sponsors/IEvangelist"],"categories":[],"sub_categories":[],"readme":"# 🌐 Machine Translator\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-7-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\n[![GitHub Marketplace](https://img.shields.io/badge/Marketplace-Machine%20Translator-blue.svg?colorA=24292e\u0026colorB=0366d6\u0026style=flat\u0026longCache=true\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=)](https://github.com/marketplace/actions/machine-translator)\n[![build](https://github.com/IEvangelist/resource-translator/actions/workflows/npm-build.yml/badge.svg)](https://github.com/IEvangelist/resource-translator/actions/workflows/npm-build.yml)\n\nA GitHub Action that automatically creates machine-translated PRs of translation files. Supported file formats include:\n\n- *.ini*\n- *.po*\n- *.restext*\n- *.resx*\n- *.xliff*\n- *.json*\n\n## Usage\n\n```yml\n# This is a basic workflow to help you get started with Actions\nname: Create translation pull request\n\n# Controls when the action will run. Triggers the workflow on push or pull request\n# events but only for the main branch\non:\n  push:\n    branches: [ main ]\n    paths:\n    - '**.ini'       # INI-based, key value pair file format\n    - '**.po'        # Portable Object file format\n    - '**.restext'   # INI-based, key value pair file format\n    - '**.resx'      # XML-based (resource) translation file format, .NET\n    - '**.xliff'     # XML-based translation file format, version 2\n    - '**.json'      # JSON-based, key value pair file format\n\n# GitHub automatically creates a GITHUB_TOKEN secret to use in your workflow.\nenv:\n  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n# A workflow run is made up of one or more jobs that can run sequentially or in parallel\njobs:\n  # This workflow contains a single job called \"build\"\n  build:\n    # The type of runner that the job will run on\n    runs-on: ubuntu-latest\n\n    # Steps represent a sequence of tasks that will be executed as part of the job\n    steps:\n      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it\n      - uses: actions/checkout@v2\n\n      # Use the machine-translator to automatically translate resource files\n      - name: Machine Translator\n        id: translator\n        uses: IEvangelist/resource-translator@v2.2.1\n        with:\n          # The source locale (for example, 'en') used to create the glob pattern\n          # for which resource (**/*.en.resx) files to use as input\n          sourceLocale: 'en'\n          # The Azure Cognitive Services translator resource subscription key\n          subscriptionKey: ${{ secrets.AZURE_TRANSLATOR_SUBSCRIPTION_KEY }}\n          # The Azure Cognitive Services translator resource endpoint.\n          endpoint: ${{ secrets.AZURE_TRANSLATOR_ENDPOINT }}\n          # (Optional) The Azure Cognitive Services translator resource region.\n          # This is optional when using a global translator resource.\n          region: ${{ secrets.AZURE_TRANSLATOR_REGION }}\n          # (Optional) Locales to translate to, otherwise all possible locales\n          # are targeted. Requires double quotes.\n          toLocales: '[\"es\",\"fr\",\"de\"]'\n\n      - name: create-pull-request\n        uses: peter-evans/create-pull-request@v3.4.1\n        if: ${{ steps.translator.outputs.has-new-translations }} == 'true'\n        with:\n          title: '${{ steps.translator.outputs.summary-title }}'\n          commit-message: '${{ steps.translator.outputs.summary-details }}'\n```\n\n### Inputs\n\n| Required | Input name        | Example                                            |\n|----------|-------------------|----------------------------------------------------|\n| Yes      | `sourceLocale`    | `'en'`                                             |\n| Yes      | `subscriptionKey` | `'c571d5d8xxxxxxxxxxxxxxxxxx56bac3'`               |\n| Yes      | `endpoint`        | `'https://api.cognitive.microsofttranslator.com/'` |\n| No       | `region`          | `'canadacentral'`                                  |\n| No       | `toLocales`       | `'\"es,de,fr\"'` or `'[\"es\",\"de\",\"fr\"]'`             |\n\nFor more information, see [GitHub Action using inputs](https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/finding-and-customizing-actions#using-inputs-and-outputs-with-an-action).\n\n### Outputs\n\n| Input name             | Description                                                                       |\n|------------------------|-----------------------------------------------------------------------------------|\n| `has-new-translations` | A `boolean` value indicating whether or not new translations have been generated. |\n| `summary-title`        | A general summary title of the translations when they occur. Ideal for PR titles. |\n| `summary-details`      | A detailed summary, formatted in Markdown. Ideal for PR message.                  |\n\nFor more information, see [GitHub Action outputs](https://docs.github.com/en/free-pro-team@latest/actions/creating-actions/metadata-syntax-for-github-actions#outputs).\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/vs-savelich\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/22545114?v=4?s=100\" width=\"100px;\" alt=\"vs-savelich\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003evs-savelich\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/IEvangelist/resource-translator/commits?author=vs-savelich\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/IEvangelist/resource-translator/commits?author=vs-savelich\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/yevgen-nykytenko\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/15048651?v=4?s=100\" width=\"100px;\" alt=\"Yevgen Nykytenko\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eYevgen Nykytenko\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/IEvangelist/resource-translator/issues?q=author%3Ayevgen-nykytenko\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://finterjobs.com\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/869?v=4?s=100\" width=\"100px;\" alt=\"Peter Rekdal Khan-Sunde\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003ePeter Rekdal Khan-Sunde\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/IEvangelist/resource-translator/issues?q=author%3Apeters\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://timheuer.com/blog/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/4821?v=4?s=100\" width=\"100px;\" alt=\"Tim Heuer\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eTim Heuer\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/IEvangelist/resource-translator/issues?q=author%3Atimheuer\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"#ideas-timheuer\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"https://github.com/IEvangelist/resource-translator/pulls?q=is%3Apr+reviewed-by%3Atimheuer\" title=\"Reviewed Pull Requests\"\u003e👀\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/tompatib\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/16067575?v=4?s=100\" width=\"100px;\" alt=\"Tibor Tompa\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eTibor Tompa\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#ideas-tompatib\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://ml-software.ch\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/4151467?v=4?s=100\" width=\"100px;\" alt=\"Matteo\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMatteo\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/IEvangelist/resource-translator/commits?author=Franklin89\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/IEvangelist/resource-translator/commits?author=Franklin89\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://mas.to/@csharpfritz\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/78577?v=4?s=100\" width=\"100px;\" alt=\"Jeffrey T. Fritz\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJeffrey T. Fritz\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/IEvangelist/resource-translator/commits?author=csharpfritz\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fievangelist%2Fresource-translator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fievangelist%2Fresource-translator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fievangelist%2Fresource-translator/lists"}