Skip to content

Commit

Permalink
fixing error crowdin config
Browse files Browse the repository at this point in the history
  • Loading branch information
max-barrera-2148 committed Sep 24, 2024
1 parent 2eefde8 commit 9e0be4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,12 @@ jobs:
curl -s https://downloads.crowdin.com/cli/v3/crowdin-cli.zip -o crowdin-cli.zip
unzip crowdin-cli.zip -d crowdin-cli
sudo mv crowdin-cli/3.15.0/crowdin /usr/local/bin/
sudo mv crowdin-cli/3.15.0/crowdin-cli.jar /usr/local/bin/ # Move the jar file to the same location
sudo chmod +x /usr/local/bin/crowdin # Make the binary executable
sudo mv crowdin-cli/3.15.0/crowdin-cli.jar /usr/local/bin/
sudo chmod +x /usr/local/bin/crowdin
- 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%'
--preserve-hierarchy
3 changes: 0 additions & 3 deletions crowdin.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
project_id: 683600
preserve_hierarchy: true
files:
# JSON translation files
- source: /i18n/en/**/*
translation: /i18n/%two_letters_code%/**/%original_file_name%
# Docs Markdown files
- source: /docs/**/*
translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name%
# Blog Markdown files
- source: /changelog/**/*
translation: /i18n/%two_letters_code%/docusaurus-plugin-content-blog-changelog/**/%original_file_name%

0 comments on commit 9e0be4d

Please sign in to comment.