mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-22 11:55:54 +01:00
Try to see if source file is required for downloading translations
This commit is contained in:
parent
21fbf5f086
commit
4907d872b6
13
.github/workflows/crowdin-download.yaml
vendored
13
.github/workflows/crowdin-download.yaml
vendored
@ -11,6 +11,17 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: "adopt"
|
||||
java-version: "17"
|
||||
- name: Make gradlew executable
|
||||
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"
|
||||
- name: Download translations from Crowdin
|
||||
uses: crowdin/github-action@v1
|
||||
with:
|
||||
@ -29,6 +40,6 @@ jobs:
|
||||
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
|
||||
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
||||
source: "i18n/build/source.yaml"
|
||||
translation: "/i18n/build/%three_letters_code%.%file_extension%"
|
||||
translation: "/i18n/src/main/resources/translations/%three_letters_code%.%file_extension%"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
2
.github/workflows/crowdin-upload.yaml
vendored
2
.github/workflows/crowdin-upload.yaml
vendored
@ -32,6 +32,6 @@ jobs:
|
||||
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
|
||||
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
||||
source: "i18n/build/source.yaml"
|
||||
translation: "/i18n/build/%three_letters_code%.%file_extension%"
|
||||
translation: "/i18n/src/main/resources/translations/%three_letters_code%.%file_extension%"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Loading…
Reference in New Issue
Block a user