Skip to content

Commit

Permalink
Merge pull request #3343 from LiteFarmOrg/LF-4349-finish-crowdin-setu…
Browse files Browse the repository at this point in the history
…p-to-support-the-addition-of-new-languages

LF-4349 Finish crowdin setup to support the addition of new languages
  • Loading branch information
SayakaOno authored Jul 29, 2024
2 parents 61c7be8 + 6175706 commit 4ef20db
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/crowdin-download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ jobs:
translation: ${{ matrix.locales.translation }} # Translations pattern
localization_branch_name: l10n_crowdin_translations_${{ env.BRANCH_NAME }}_${{ matrix.locales.name }}
create_pull_request: true
pull_request_title: "New Crowdin translations"
pull_request_body: "New Crowdin pull request with translations"
pull_request_title: "New Crowdin translations ${{ matrix.locales.name }}"
pull_request_body: "New Crowdin pull request with translations of ${{ matrix.locales.name }}"
pull_request_base_branch_name: ${{ env.BRANCH_NAME }}
crowdin_branch_name: ${{ env.BRANCH_NAME }}
env:
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/crowdin-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ name: Crowdin Upload Action

on:
workflow_dispatch:
push:
branches:
- integration
paths:
- "**/locales/**.md"
- "**/locales/**.json"
inputs:
upload_translations:
description: "Upload translations to Crowdin"
type: boolean
default: false
auto_approve_imported:
description: "Auto approve imported translations"
type: boolean
default: false

jobs:
synchronize-translations:
Expand Down Expand Up @@ -46,11 +49,11 @@ jobs:
uses: crowdin/github-action@v2
with:
upload_sources: true
upload_translations: false
upload_translations: ${{ github.event.inputs.upload_translations || false }}
upload_sources_args: --preserve-hierarchy
upload_translations_args: --preserve-hierarchy
download_translations: false
auto_approve_imported: false
auto_approve_imported: ${{ github.event.inputs.auto_approve_imported || false }}
import_eq_suggestions: true
crowdin_branch_name: ${{ env.BRANCH_NAME }}
source: ${{ matrix.locales.source }} # Sources pattern
Expand Down

0 comments on commit 4ef20db

Please sign in to comment.