forked from activepieces/activepieces
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
13,264 additions
and
5,056 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,42 @@ | ||
name: Crowdin Action | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
synchronize-with-crowdin: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('package-lock.json') }} | ||
restore-keys: npm- | ||
|
||
- name: Install dependencies | ||
run: npm ci --ignore-scripts | ||
|
||
- name: build packages | ||
run: npx nx run-many --target=extract-i18n --projects=ui-core | ||
|
||
- name: crowdin action | ||
uses: crowdin/github-action@v1 | ||
with: | ||
upload_sources: true | ||
upload_translations: false | ||
download_translations: true | ||
localization_branch_name: l10n_crowdin_translations | ||
create_pull_request: true | ||
pull_request_title: 'feat(crowdin): New Translations' | ||
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)' | ||
pull_request_base_branch_name: 'main' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_ABUABOUD_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,32 @@ | ||
# | ||
# Your Crowdin credentials | ||
# | ||
"project_id_env": "CROWDIN_PROJECT_ID" | ||
"api_token_env": "CROWDIN_PERSONAL_TOKEN" | ||
"base_path": "." | ||
"base_url": "https://api.crowdin.com" | ||
|
||
# | ||
# Choose file structure in Crowdin | ||
# e.g. true or false | ||
# | ||
"preserve_hierarchy": true | ||
|
||
# | ||
# Files configuration | ||
# | ||
files: [ | ||
{ | ||
# | ||
# Source files filter | ||
# e.g. "/resources/en/*.json" | ||
# | ||
"source": "packages/ui/core/src/locale/messages.xlf", | ||
|
||
# | ||
# Where translations will be placed | ||
# e.g. "/resources/packages/ui/core/src/locale%two_letters_code%/%original_file_name%" | ||
# | ||
"translation": "packages/ui/core/src/locale/messages.%two_letters_code%.xlf", | ||
} | ||
] |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.