Skip to content

fix(expanded-player): reorder right-panel toggles to queue/info/lyric… #44

fix(expanded-player): reorder right-panel toggles to queue/info/lyric…

fix(expanded-player): reorder right-panel toggles to queue/info/lyric… #44

Workflow file for this run

name: Crowdin Sync
on:
push:
branches: [master]
paths:
- 'src/i18n/locales/en.json'
schedule:
- cron: '0 6 * * 1' # Every Monday at 06:00 UTC
workflow_dispatch:
inputs:
action:
description: 'Action to perform'
required: true
default: 'download'
type: choice
options:
- upload
- download
jobs:
upload-sources:
name: Upload source strings to Crowdin
if: >-
github.event_name == 'push' ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.action == 'upload')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Upload sources and translations
uses: crowdin/github-action@v2
with:
upload_sources: true
upload_translations: true
download_translations: false
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
download-translations:
name: Download translations from Crowdin
if: >-
github.event_name == 'schedule' ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.action == 'download')
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v5
- name: Download translations
uses: crowdin/github-action@v2
with:
upload_sources: false
upload_translations: false
download_translations: true
create_pull_request: true
pull_request_title: 'i18n: update translations from Crowdin'
pull_request_body: >-
Automated pull request with latest translations from Crowdin.
Review the changed locale files before merging.
pull_request_base_branch_name: master
localization_branch_name: crowdin-translations
commit_message: 'i18n: update translations from Crowdin'
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}