-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
not sure if this is a mistake instead of using the Crowdin CLI but we'll see
- Loading branch information
1 parent
4e46e22
commit 6750548
Showing
9 changed files
with
80 additions
and
9 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Crowdin translations stuff | ||
|
||
run-name: Update from Crowdin | ||
|
||
on: | ||
schedule: | ||
- cron: "0 */12 * * *" | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
crowdin-translations-progress: | ||
name: Crowdin translations progress updater | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Generate Crowdin translations progress markdown | ||
uses: benjaminjonard/[email protected] | ||
with: | ||
languages_per_row: 10 | ||
minimum_completion_percent: 80 | ||
file: README.md | ||
env: | ||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} | ||
|
||
- name: Push changes | ||
uses: actions-go/push@v1 | ||
with: | ||
author-name: Actionsbot | ||
author-email: [email protected] | ||
commit-message: 'Update Crowdin translation progress badge' | ||
remote: origin | ||
|
||
update-from-crowdin: | ||
name: Update strings from Crowdin | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Grab strings from Crowdin | ||
uses: crowdin/[email protected] | ||
with: | ||
config: crowdin.yml | ||
upload_sources: true | ||
upload_translations: false | ||
upload_language: us | ||
download_sources: true | ||
download_translations: true | ||
skip_untranslated_files: true | ||
skip_untranslated_strings: true | ||
export_only_approved: true | ||
localization_branch_name: i18n-crowdin-translations | ||
create_pull_request: true | ||
pull_request_title: (Crowdin Action) New translation strings | ||
pull_request_body: New translated strings are now available! | ||
pull_request_labels: crowdin | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
files: | ||
- source: /i18n/lang/en-US.json | ||
translations: %original_path%/%locale%.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.