-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add crowdin configuration and github action (#12552)
* add crowdin.yml * add crowdin_action.yml * remove comments * test on this branch * use SHA * only run on develop
- Loading branch information
1 parent
a820bce
commit 163d472
Showing
2 changed files
with
44 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Crowdin Action | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
schedule: | ||
- cron: "0 */12 * * *" | ||
|
||
jobs: | ||
synchronize-with-crowdin: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: crowdin action | ||
uses: crowdin/github-action@d0622816ed4f4744db27d04374b2cef6867f7bed | ||
with: | ||
upload_translations: true | ||
download_translations: true | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
"project_id_env": CROWDIN_PROJECT_ID | ||
"api_token_env": CROWDIN_PERSONAL_TOKEN | ||
"base_path" : "." | ||
"base_url" : "https://metamask.crowdin.com" | ||
|
||
"preserve_hierarchy": true | ||
|
||
files: [ | ||
{ | ||
"source" : "app/_locales/en/messages.json", | ||
"translation" : "/app/_locales/%two_letters_code%/%original_file_name%", | ||
} | ||
] |