Skip to content

Translate Cura plugin

Actions
Create and update translation of the Cura plugin
v2
Latest
Star (4)

Translate Cura plugin

A github workflow action that creates and updates translation files for Cura plugin source repositories.

Inputs

Parameter Description Default
translation_folder Path to the translation directory i18n
translation_name Name of the translation template and locale files ``
plugin_name That name will be dispayed in the translation files header ``

Outputs

The following output values can be accessed via ${{ steps.<step-id>.outputs.<output-name> }}:

Name Description Type
template_updated 1 if .pot file was updated bool
locales_updated 1 if .mo file(s) was updated bool

Example

name: "Translation with the action"

on:
  push:
    branches-ignore:
      - 'develop'
      - 'release-**'
      
jobs:
   update_translation:
     name: "Update plugin translation"
     runs-on: "ubuntu-latest"
     
     steps:
      - uses: actions/checkout@v4
      
      - name: "Translation"
        id: translation
        uses: PrintMakerLab/cura-plugin-translation@main
        with:
          translation_folder: 'i18n'
          translation_name: 'mksplugin'
          plugin_name: 'MKS WiFi Plugin'
   
      - if: ${{ steps.translation.outputs.template_updated || steps.translation.outputs.locales_updated }}
        uses: stefanzweifel/git-auto-commit-action@v4
        with:
          commit_message: "[CI] Translation updated"

Translate Cura plugin is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Create and update translation of the Cura plugin
v2
Latest

Translate Cura plugin is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.