2021-07-29 03:14:29 +02:00
|
|
|
name: Crowdin translation upload
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-07-19 17:41:02 +02:00
|
|
|
branches: [main]
|
2021-07-29 03:14:29 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
synchronize-with-crowdin:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-04-20 09:22:05 +02:00
|
|
|
uses: actions/checkout@v3
|
2023-07-19 17:54:12 +02:00
|
|
|
- name: Setup Java
|
2023-07-19 17:41:02 +02:00
|
|
|
uses: actions/setup-java@v3
|
2021-07-29 03:14:29 +02:00
|
|
|
with:
|
|
|
|
distribution: "adopt"
|
2023-07-19 17:54:12 +02:00
|
|
|
java-version: "17"
|
2023-07-19 17:41:02 +02:00
|
|
|
- name: Make gradlew executable
|
2021-07-29 03:14:29 +02:00
|
|
|
run: "sudo chmod +x gradlew"
|
|
|
|
- name: Build i18n application
|
|
|
|
run: "./gradlew i18n:build"
|
|
|
|
- name: Generate translation source
|
|
|
|
run: "java -jar i18n/build/libs/i18n-all.jar"
|
2023-07-19 19:15:34 +02:00
|
|
|
- name: Upload source to Crowdin
|
2023-07-19 17:51:55 +02:00
|
|
|
uses: crowdin/github-action@v1
|
2021-07-29 03:14:29 +02:00
|
|
|
with:
|
2023-07-19 17:51:55 +02:00
|
|
|
upload_sources: true
|
|
|
|
upload_translations: false
|
2023-07-19 19:51:34 +02:00
|
|
|
download_sources: false
|
2021-07-29 03:14:29 +02:00
|
|
|
download_translations: false
|
2023-07-19 19:51:34 +02:00
|
|
|
|
2021-07-29 03:14:29 +02:00
|
|
|
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
|
|
|
|
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
2023-07-19 19:51:34 +02:00
|
|
|
source: "i18n/build/source.yaml"
|
2023-07-19 20:12:39 +02:00
|
|
|
translation: "/i18n/src/main/resources/translations/%three_letters_code%.%file_extension%"
|
2021-07-29 03:14:29 +02:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|