-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/plot_testing
- Loading branch information
Showing
380 changed files
with
15,769 additions
and
13,792 deletions.
There are no files selected for viewing
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,61 @@ | ||
name: Crowdin Action | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
synchronize-with-crowdin: | ||
runs-on: [k8s-public] | ||
container: python:3.9.7 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Vault Login | ||
uses: Chia-Network/actions/vault/login@main | ||
with: | ||
vault_url: ${{ secrets.VAULT_URL }} | ||
role_name: github-chia-blockchain-gui | ||
|
||
- name: Get secrets from vault | ||
uses: hashicorp/[email protected] | ||
with: | ||
url: ${{ secrets.VAULT_URL }} | ||
token: ${{ env.VAULT_TOKEN }} | ||
secrets: | | ||
secret/data/crowdin token | CROWDIN_PERSONAL_TOKEN; | ||
secret/data/crowdin project-id-blockchain-gui | CROWDIN_PROJECT_ID; | ||
- name: Install J2 | ||
run: | | ||
pip install j2cli | ||
- name: Generate crowdin configuration file | ||
run: | | ||
j2 crowdin.yml.j2 -o crowdin.yml | ||
- name: crowdin action | ||
uses: crowdin/[email protected] | ||
with: | ||
upload_sources: true | ||
upload_translations: true | ||
download_translations: true | ||
localization_branch_name: l10n_crowdin_translations | ||
create_pull_request: true | ||
pull_request_title: 'New Crowdin Translations' | ||
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)' | ||
pull_request_base_branch_name: 'main' | ||
github_user_name: 'Chia Automation' | ||
github_user_email: '[email protected]' | ||
gpg_private_key: ${{ secrets.CHIA_AUTOMATION_PRIVATE_GPG_KEY_RSA }} | ||
gpg_passphrase: ${{ secrets.CHIA_AUTOMATION_PRIVATE_GPG_PASSPHRASE }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GIT_TRACE: 1 |
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 |
---|---|---|
|
@@ -103,4 +103,7 @@ dist | |
# Test coverage data | ||
**/coverage | ||
.coverage | ||
.nyc_output | ||
.nyc_output | ||
|
||
# Crowdin | ||
crowdin.yml |
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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
files: | ||
- source: /packages/core/src/locales/en-US/*.po | ||
- source: packages/core/src/locales/en-US/*.po | ||
translation: /packages/core/src/locales/%locale%/messages.po | ||
- source: /packages/gui/src/locales/en-US/*.po | ||
translation: /packages/gui/src/locales/%locale%/messages.po | ||
- source: /packages/wallet/src/locales/en-US/*.po | ||
translation: /packages/wallet/src/locales/%locale%/messages.po | ||
- source: /packages/wallets/src/locales/en-US/*.po | ||
translation: /packages/wallets/src/locales/%locale%/messages.po |
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,14 @@ | ||
# Crowdin credentials | ||
"project_id": "{{ CROWDIN_PROJECT_ID }}" | ||
"api_token": "{{ CROWDIN_PERSONAL_TOKEN }}" | ||
"base_path": "." | ||
"base_url": "https://chia.crowdin.com" | ||
|
||
files: | ||
- source: /packages/core/src/locales/en-US/*.po | ||
translation: /packages/core/src/locales/%locale%/messages.po | ||
- source: /packages/gui/src/locales/en-US/*.po | ||
translation: /packages/gui/src/locales/%locale%/messages.po | ||
- source: /packages/wallets/src/locales/en-US/*.po | ||
translation: /packages/wallets/src/locales/%locale%/messages.po | ||
|
Oops, something went wrong.