Files
lasuite-messages/.github/workflows/crowdin_upload.yml
Jean-Baptiste PENRATHandGitHub 2d9fd3e5a1 💚(crowdin) fix crowdin upload job (#399)
The `synchronize-with-crowdin` was not working since we add the msg-import
s3 storage.
2025-10-30 11:34:53 +01:00

44 lines
1.3 KiB
YAML

name: Update crowdin sources
on:
workflow_dispatch:
push:
branches:
- main
jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
env:
DJANGO_CONFIGURATION: Build
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Backend i18n
- name: Create env files
run: make create-env-files
- name: Generate source translations
run: make front-install-frozen
- name: Generate source translations
run: make i18n-generate
- name: crowdin action
uses: crowdin/github-action@v2
with:
config: crowdin/config.yml
upload_sources: true
upload_translations: true
# Upload french translations only as we want to translate this language during dev
upload_language: fr
download_translations: false
create_pull_request: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# A numeric ID, found at https://crowdin.com/project/<projectName>/tools/api
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
# Visit https://crowdin.com/settings#api-key to create this token
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CROWDIN_BASE_PATH: "../src/"