Yeah69 / MrMeeseeks.ResXTranslationCombinator

A Github action that searches for default, automatically translated, and manually overriden ResX files, automatically translates missing texts, and combines them to directly usable ResX files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MrMeeseeks.ResXTranslator

Features

  • choose one of the supported languages from DeepL as default language
  • let DeepL translate the rest automatically
  • and let language experts override specific localizations

Sample workflow

name: Create translation pull request

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only if resx files where involved
on:
  push:
    paths:
    - '**.resx'

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

jobs:
  build:
    runs-on: ubuntu-latest
    
    steps:
      - uses: actions/checkout@main

      # Translate and combine ResX files
      - name: Translation and Combination
        id: translator
        uses: Yeah69/MrMeeseeks.ResXTranslationCombinator@main
        with:
          # The authentication key of the DeepL API access
          auth: ${{ secrets.DEEPL_API_AUTH_KEY }}

      - name: create-pull-request
        uses: peter-evans/create-pull-request@main
        with:
          title: '${{ steps.translator.outputs.summary-title }}'
          commit-message: '${{ steps.translator.outputs.summary-details }}'

For a bit of more details, see the wiki page https://github.com/Yeah69/MrMeeseeks.ResXTranslationCombinator/wiki.

References

About

A Github action that searches for default, automatically translated, and manually overriden ResX files, automatically translates missing texts, and combines them to directly usable ResX files.

License:MIT License


Languages

Language:C# 97.5%Language:Dockerfile 2.5%