All Projects → IEvangelist → resource-translator

IEvangelist / resource-translator

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

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to resource-translator

AspNetCoreMvcSharedLocalization
ASP.NET Core MVC shared localization
Stars: ✭ 31 (-29.55%)
Mutual labels:  localization, resx
misspell-fixer-action
📝Automatically fixes typos and mistakes in your source code and docs!
Stars: ✭ 123 (+179.55%)
Mutual labels:  localization, github-actions
msgtools
Tools for Developing Diagnostic Messages
Stars: ✭ 18 (-59.09%)
Mutual labels:  localization, translation-files
resxmanager
Consolidates, synchronizes and translates Microsoft .NET resources (*.resx, *.wxl). Supports export to Excel (*.xlsx) and automating translation.
Stars: ✭ 28 (-36.36%)
Mutual labels:  localization, resx
iXn
Control your localization of apps
Stars: ✭ 20 (-54.55%)
Mutual labels:  localization
schummar-translate
TypeScript powered translation library for React and Node.js.
Stars: ✭ 120 (+172.73%)
Mutual labels:  localization
csv-localizer
Command Line Interface that convert CSV file to iOS, Android or JSON localizable strings
Stars: ✭ 84 (+90.91%)
Mutual labels:  localization
I18N-Portable
Simple and cross platform internationalization/translations for Xamarin and .NET
Stars: ✭ 102 (+131.82%)
Mutual labels:  localization
JuliaAutonomy
Julia sample codes for Autonomy, Robotics and Self-Driving Algorithms.
Stars: ✭ 21 (-52.27%)
Mutual labels:  localization
socitrack
A wearable platform for social interaction studies
Stars: ✭ 16 (-63.64%)
Mutual labels:  localization
plaster
Application config settings abstraction layer.
Stars: ✭ 19 (-56.82%)
Mutual labels:  ini
AI-on-Microsoft-Azure
Microsoft buduje i tworzy Polską Dolinę Cyfrową. W ramach tej inicjatywy podjęliśmy się wyzwania zbudowania chmurowych kompetencji wśród 150tys osób w Polsce. Jednym z elementów tej inicjatywy jest dedykowany kurs na studiach inzynierskich i magisterskich na Politechnice Warszawskiej poświęcony chmurze obliczeniowej oraz sztucznej inteligencji.
Stars: ✭ 11 (-75%)
Mutual labels:  cognitive-services
juejin-actions
掘金每天自动签到 github actions 。组织了每周一起学习200行左右的【源码共读】活动,感兴趣可以加我微信 ruochuan12 参与。
Stars: ✭ 47 (+6.82%)
Mutual labels:  github-actions
textpacks
Textpattern CMS language files.
Stars: ✭ 25 (-43.18%)
Mutual labels:  localization
18-comic-finder
禁漫天堂Github Actions下载器🧘
Stars: ✭ 264 (+500%)
Mutual labels:  github-actions
learnrxjs
Русскоязычная документация RxJS
Stars: ✭ 20 (-54.55%)
Mutual labels:  localization
MaratonaBots
Códigos em Node.js da Maratona Bots
Stars: ✭ 29 (-34.09%)
Mutual labels:  cognitive-services
github-wiki-publish-action
GitHub Action that publishes the contents of a directory to your project's wiki
Stars: ✭ 75 (+70.45%)
Mutual labels:  github-actions
database-js
Common Database Interface for Node
Stars: ✭ 58 (+31.82%)
Mutual labels:  ini
learn flutter theme
Learn flutter theme in this project
Stars: ✭ 30 (-31.82%)
Mutual labels:  localization

🌐 Machine Translator

All Contributors

GitHub Marketplace build

A GitHub Action that automatically creates machine-translated PRs of translation files. Supported file formats include:

  • .ini
  • .po
  • .restext
  • .resx
  • .xliff
  • .json

Usage

# This is a basic workflow to help you get started with Actions
name: Create translation pull request

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
  push:
    branches: [ main ]
    paths:
    - '**.ini'       # INI-based, key value pair file format
    - '**.po'        # Portable Object file format
    - '**.restext'   # INI-based, key value pair file format
    - '**.resx'      # XML-based (resource) translation file format, .NET
    - '**.xliff'     # XML-based translation file format, version 2
    - '**.json'      # JSON-based, key value pair file format

# GitHub automatically creates a GITHUB_TOKEN secret to use in your workflow.
env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  # This workflow contains a single job called "build"
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v2

      # Use the machine-translator to automatically translate resource files
      - name: Machine Translator
        id: translator
        uses: IEvangelist/[email protected]
        with:
          # The source locale (for example, 'en') used to create the glob pattern
          # for which resource (**/*.en.resx) files to use as input
          sourceLocale: 'en'
          # The Azure Cognitive Services translator resource subscription key
          subscriptionKey: ${{ secrets.AZURE_TRANSLATOR_SUBSCRIPTION_KEY }}
          # The Azure Cognitive Services translator resource endpoint.
          endpoint: ${{ secrets.AZURE_TRANSLATOR_ENDPOINT }}
          # (Optional) The Azure Cognitive Services translator resource region.
          # This is optional when using a global translator resource.
          region: ${{ secrets.AZURE_TRANSLATOR_REGION }}
          # (Optional) Locales to translate to, otherwise all possible locales
          # are targeted. Requires double quotes.
          toLocales: '["es","fr","de"]'

      - name: create-pull-request
        uses: peter-evans/[email protected]
        if: ${{ steps.translator.outputs.has-new-translations }} == 'true'
        with:
          title: '${{ steps.translator.outputs.summary-title }}'
          commit-message: '${{ steps.translator.outputs.summary-details }}'

Inputs

Required Input name Example
Yes sourceLocale 'en'
Yes subscriptionKey 'c571d5d8xxxxxxxxxxxxxxxxxx56bac3'
Yes endpoint 'https://api.cognitive.microsofttranslator.com/'
No region 'canadacentral'
No toLocales '"es,de,fr"' or '["es","de","fr"]'

For more information, see GitHub Action using inputs.

Outputs

Input name Description
has-new-translations A boolean value indicating whether or not new translations have been generated.
summary-title A general summary title of the translations when they occur. Ideal for PR titles.
summary-details A detailed summary, formatted in Markdown. Ideal for PR message.

For more information, see GitHub Action outputs.

Contributors

Thanks goes to these wonderful people (emoji key):


vs-savelich

💻 ⚠️

Yevgen Nykytenko

🐛

Peter Rekdal Khan-Sunde

🐛

Tim Heuer

🐛 🤔 👀

Tibor Tompa

🤔

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].