-
Notifications
You must be signed in to change notification settings - Fork 53
50 lines (39 loc) · 1.26 KB
/
crowdin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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@v4
- 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 }}