-
-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (75 loc) · 4.3 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Crowdin Sync for the Smoothie Play Store and App Store descriptions
on:
push:
branches: [ crowdin-trigger ]
jobs:
synchronize-with-crowdin:
name: Synchronize with Crowdin
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/[email protected]
- name: Sync translations with Crowdin
uses: crowdin/[email protected]
with:
upload_translations: false # default is false
# Use this option to upload translations for a single specified language
download_translations: true
# Upload sources to Crowdin
upload_sources: true
# Upload translations to Crowdin
# upload_language: # optional
# Automatically approves uploaded translations
# auto_approve_imported: # default is false
# Defines whether to add translation if it is equal to source string in Crowdin project
# import_eq_suggestions: # default is false
# Make pull request of Crowdin translations
# Use this option to download translations for a single specified language
# download_language: # optional
# Skip untranslated strings in exported files (does not work with .docx, .html, .md and other document files)
skip_untranslated_strings: false
# Omit downloading not fully downloaded files
skip_untranslated_files: false
# Include approved translations only in exported files. If not combined with --skip-untranslated-strings option, strings without approval are fulfilled with the source language
# export_only_approved: # default is false
# Download translations with pushing to branch
# push_translations: # default is true
# Commit message for download translations
commit_message: "chore: New Crowdin translations by Github Action"
# To download translations to the specified version branch
localization_branch_name: l10n_main
# Create pull request after pushing to branch
# create_pull_request: # default is true
# The title of the new pull request
pull_request_title: "chore: New Crowdin translations to review and merge"
# The contents of the pull request
pull_request_body: '### What\n- Automated pull request pulling in new or updated translations from Crowdin (https://translate.openfoodfacts.org).\n## Checklist\n- [ ] Check that they are no bad translations. If there are, correct them directly in Crowdin so that they are not resynced again. Then you can correct them here as well, or wait 24 hours for the sync to happen automatically.\n- [ ] Put extra attention on Acholi, which is used mistakenly as a sandbox by people discovering the self-service translation button on Open Food Facts\n- [ ] Once you are happy, that automated checks pass, you can approve the PR and merge it.\n### Part of\n- Translations'
# To add labels for created pull request
pull_request_labels: "translations"
# Create pull request to specified branch instead of default one
pull_request_base_branch_name: main
# Option to upload or download files to the specified version branch in your Crowdin project
# crowdin_branch_name: # optional
# Option to specify a path to user-specific credentials, without / at the beginning
# identity: # optional
# Option to specify a path to the configuration file, without / at the beginning
# config: # optional
# Option to preview the list of managed files
# dryrun_action: # default is false
# Numerical ID of the project
# project_id: # optional
# Personal access token required for authentication
# token: # optional
# Base URL of Crowdin server for API requests execution
#base_url: 'https://crowdin.com'
# Path to your project directory on a local machine
#base_path: '/openfoodfacts'
# Path to the source files
# source: # optional
# TODO source: 'packages/smooth_app/lib/l10n/app_en.arb'
# Path to the translation files
# TODO translation: 'packages/smooth_app/lib/l10n/app_%two_letters_code%.arb'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}