Skip to content

Commit

Permalink
update crowdin config
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
TheMCLoveMan committed Mar 1, 2024
1 parent 3398c23 commit 72cd17c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 40 deletions.
27 changes: 4 additions & 23 deletions .github/workflows/crowdin-download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,7 @@ on:
permissions: write-all

jobs:
crowdin-download:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Synchronize with Crowdin
uses: crowdin/github-action@v1
with:
upload_sources: false
upload_translations: false
download_translations: true
skip_untranslated_strings: true
localization_branch_name: l10n_crowdin_translations

create_pull_request: true
pull_request_title: 'New Crowdin translations'
pull_request_body: 'New Crowdin pull request with translations'
pull_request_base_branch_name: '1.20.X'
pull_request_labels: 'translations'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
crowdin:
uses: TheMCBrothers/.github/.github/workflows/crowdin_download.yml@main
with:
pull_request_base_branch_name: '1.20.X'
18 changes: 3 additions & 15 deletions .github/workflows/crowdin-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,9 @@ name: Crowdin Upload
on:
push:
paths: [ 'src/generated/resources/assets/*/lang/**' ]
branches: [ 1.20.X ]
branches: [ '1.20.X' ]
workflow_dispatch:

jobs:
crowdin-upload:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Crowdin Push
uses: crowdin/github-action@v1
with:
upload_sources: true
upload_translations: false
download_translations: false
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
crowdin:
uses: TheMCBrothers/.github/.github/workflows/crowdin_upload.yml@main
4 changes: 2 additions & 2 deletions crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

files: [
{
"source": "src/generated/resources/assets/uselessmod/lang/en_us.json",
"translation": "src/main/resources/assets/uselessmod/lang/%locale_with_underscore%.json",
"source": "src/generated/resources/assets/**/lang/en_us.json",
"translation": "src/main/resources/assets/**/lang/%locale_with_underscore%.json",
"languages_mapping": {
"locale_with_underscore": {
"af": "af_za",
Expand Down

0 comments on commit 72cd17c

Please sign in to comment.