-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated crowdin and added github actions workflow
- Loading branch information
1 parent
4aad675
commit 0a196a4
Showing
2 changed files
with
30 additions
and
1 deletion.
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,30 @@ | ||
name: Crowdin Sync | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # Adjust the branch as needed | ||
- feature/i18n | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Crowdin CLI | ||
run: | | ||
curl -s https://api.crowdin.com/downloads/cli/v3/crowdin-cli.zip -o crowdin-cli.zip | ||
unzip crowdin-cli.zip -d crowdin-cli | ||
sudo mv crowdin-cli/crowdin /usr/local/bin/ | ||
- name: Crowdin Sync | ||
run: | | ||
crowdin upload sources \ | ||
--project-id 683600 \ | ||
--token ${{ secrets.CROWDIN_API_TOKEN }} \ | ||
--preserve-hierarchy true \ | ||
--files 'i18n/en/**/*:/i18n/%two_letters_code%/**/%original_file_name%' \ | ||
--files 'docs/**/*:/i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name%' \ | ||
--files 'changelog/**/*:/i18n/%two_letters_code%/docusaurus-plugin-content-blog-changelog/**/%original_file_name%' |
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