Skip to content

glpi-project/plugin-translation-workflows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Plugin translation workflows

Transifex

Push

This workflow will push the up-to-date locales sources to Transifex.

You can use this workflow using the following Github Actions configuration.

name: "Update locales sources"

on:
  push:
    branches:
      - "main"

jobs:
  push-sources-on-transifex:
    name: "Push locales sources"
    uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-push-sources.yml@v1"
    secrets:
      # The Transifex API token used to push sources.
      transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}"

Push / pull

This workflow will fetch the latest translations from Transifex and propose a pull request with the incoming changes.

You can use this workflow using the following Github Actions configuration.

name: "Synchronize locales"

on:
  schedule:
    - cron: "0 0 * * *"
  workflow_dispatch:

jobs:
  sync-with-transifex:
    name: "Sync with transifex"
    uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-sync.yml@v1"
    secrets:
      # The GitHub access token used when the locales update pull request is created.
      # This personal access token (PAT) is required to ensure that subsequent workflows that listen
      # to the pull_request and the push events will be triggered.
      # This PAT requires the `Content: read/write` and the `Pull requests: read/write` permissions.
      github-token: "${{ secrets.LOCALES_SYNC_TOKEN }}"
      # The Transifex API token used to push sources and pull translations.
      transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published