Skip to content

Commit

Permalink
Merge branch 'main' into feature/plot_testing
Browse files Browse the repository at this point in the history
  • Loading branch information
wallentx committed Aug 22, 2023
2 parents a9dfb2b + 6ffa783 commit 3b5add8
Show file tree
Hide file tree
Showing 380 changed files with 15,769 additions and 13,792 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
// Automatically order imports
"import/order": [
"error",
{ "groups": ["builtin", "external", "internal"], "alphabetize": { "order": "asc" }, "newlines-between": "always" }
{
"groups": ["builtin", "external", "internal", "parent", "sibling"],
"alphabetize": { "order": "asc" },
"newlines-between": "always"
}
],
// Already taken care of by import/order. This must stay here, so require(); is before any import
"import/first": "off",
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/sync-crowdin.yml
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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,7 @@ dist
# Test coverage data
**/coverage
.coverage
.nyc_output
.nyc_output

# Crowdin
crowdin.yml
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,28 @@ Do not edit files directly in the repo, but instead please head over to our [Cro
}
```

## Debugging

1. In the Chia Electron app, click `View -> Developer -> Developer tools`.
2. In the console tab of the developer tools, change the default console events to include `verbose` events. These are the events emitted from the `debug` package.

## Simulator / SimNet

1. Please follow the [Install and configure the simulator](https://docs.chia.net/guides/simulator-user-guide/). Do this step only once.
2. In the chia-blockchain directory, run this to setup the ENV variables. Use these instead the ones mentioned in the above guide.

```
export CHIA_ROOT=~/.chia/simulator/main
export CHIA_SIMULATOR_ROOT=~/.chia/simulator
export CHIA_KEYS_ROOT=~/.chia_keys_simulator
```

3. `. ./activate`
4. `chia start simulator`
5. `cd chia-blockchain-gui/packages/gui`
6. `npm run dev:skipLocales`
7. You should see your simulator wallets. You should not see your testNet / mainNet wallets.

## Chia FAQ/WIKI

Please check out the [wiki](https://github.com/Chia-Network/chia-blockchain/wiki)
Expand Down
4 changes: 1 addition & 3 deletions crowdin.yml
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
14 changes: 14 additions & 0 deletions crowdin.yml.j2
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

Loading

0 comments on commit 3b5add8

Please sign in to comment.