Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update crowdin.yaml #328

Merged
merged 4 commits into from
Jun 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/crowdin-wf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Crowdin Action
# Controls when the action will run.
on:
schedule:
- cron: '43 * * * *'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
synchronize-with-crowdin:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v2

# Runs the Crowdin action command - https://github.com/crowdin/github-action
- name: crowdin action
uses: crowdin/github-action@1.1.0
with:
# Upload sources to Crowdin
upload_sources: true
# Upload translations to Crowdin, only use true at initial run
upload_translations: true
# Make pull request of Crowdin translations
download_translations: false
# Only download translated strings
skip_untranslated_strings: false
# Download translations with pushing to branch
push_translations: true
# To download translations to the specified version branch
localization_branch_name: 'l10n_crowdin_translations'
# Create pull request after pushing to branch
create_pull_request: true
# Configuration file to use
config: 'crowdin.yml'
# Use true for dryrun to test the run without actually processing anything
dryrun_action: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
11 changes: 11 additions & 0 deletions crowdin.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
# Project Public Identifier: joomla-official-extensions
project_id: 104
api_token_env: CROWDIN_PERSONAL_TOKEN
base_path: /administrator/components/com_patchtester/language
base_url: "https://joomla.crowdin.com"

preserve_hierarchy: true

files:
- source: /en-GB/com_patchtester.ini
dest: 'PatchTester/com_patchtester.ini'
translation: /%locale%/com_patchtester.ini
type: joomla
update_option: update_as_unapproved
- source: /en-GB/com_patchtester.sys.ini
dest: 'PatchTester/com_patchtester.sys.ini'
translation: /%locale%/com_patchtester.sys.ini
type: joomla
update_option: update_as_unapproved