Skip to content

Commit

Permalink
feat: pot is build in gh action and no longer needed in repository
Browse files Browse the repository at this point in the history
  • Loading branch information
ElJocho committed Feb 28, 2024
1 parent 126e17a commit 90bb0dd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1,380 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/crowdin-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Crowdin Action

on:
push:
branches: [ 12-add-translations ]
branches: [ automate_pot_creation ]

jobs:
synchronize-with-crowdin:
Expand All @@ -11,20 +11,27 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: crowdin action
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python3.11 -m pip install pybabel
pybabel extract -F sketch_map_tool/config/babel.cfg -o messages.pot .
- name: Sync GH and Crowdin
uses: crowdin/github-action@v1.19.0
with:
upload_sources: true
upload_translations: false
download_translations: true

localization_branch_name: i18n_crowdin
create_pull_request: true
push_sources: false
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'
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ github.token }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
Expand Down
Loading

0 comments on commit 90bb0dd

Please sign in to comment.