Skip to content

A GitHub action to manage and synchronize localization resources with your Crowdin project

Notifications You must be signed in to change notification settings

kk753344a/github-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Github Crowdin Action

What does this action do?

  • Uploads sources to Crowdin.
  • Uploads translations to Crowdin.
  • Downloads translations from Crowdin.

Usage

Set up a workflow in .github/workflows/crowdin.yml (or add a job to your existing workflows).

Read the Configuring a workflow article for more details on how to create and set up custom workflows.

name: Crowdin Action

on:
  push:
    branches: [ master ]

jobs:
  synchronize-with-crowdin:
    runs-on: ubuntu-latest

    steps:

    - name: Checkout
      uses: actions/checkout@v2

    - name: crowdin action
      uses: crowdin/github-action@1.0.0
      with:
        upload_translations: true
        download_translations: true
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
        CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

Supported options

The default action is to upload sources. Though, you can set different actions through the “with” options. If you don't want to upload your sources to Crowdin, just set the upload_sources option to false.

By default sources and translations are being uploaded to the root of your Crowdin project. Still, if you use branches, you can set the preferred source branch.

You can also specify what GitHub branch you’d like to download your translations to (default translation branch is l10n_crowdin_action).

In case you don’t want to download translations from Crowdin (download_translations: false), localization_branch_name and create_pull_request options aren't required either.

- name: crowdin action
  with:
    upload_sources: true
    upload_translations: true
    crowdin_branch_name: l10n_branch
    dryrun_action: true

    download_translations: true
    localization_branch_name: l10n_crowdin_action
    create_pull_request: true

About

A GitHub action to manage and synchronize localization resources with your Crowdin project

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 95.7%
  • Dockerfile 4.3%