Skip to content

Crowdin

Crowdin #1248

Workflow file for this run

name: Crowdin
on:
# Check for updates every day
schedule:
- cron: "0 0 * * *"
# Sync when a commit is done on master
push:
branches:
- master
paths:
- "nxdrive/data/i18n/i18n.json"
jobs:
crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Crowdin Action
uses: crowdin/[email protected]
with:
# Tokens
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
source: nxdrive/data/i18n/i18n.json
# https://support.crowdin.com/configuration-file/#placeholders
translation: "nxdrive/data/i18n/i18n-%two_letters_code%.json"
# Auto-approve reference sentences we are pushing (english)
auto_approve_imported: true
# Name of the branch to create for the PR
localization_branch_name: wip-translations-update
# Create a branch and a PR on any changes
download_translations: true
create_pull_request: true
# Set PR labels
pull_request_labels: "translations"
# For testing purposes
# dryrun_action: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}