|
|
|
@ -5,9 +5,9 @@ on: |
|
|
|
# Monitor all .json files within the /src/i18n/locales/en/ directory. |
|
|
|
# This ensures the workflow triggers if any the English namespace files are modified on the main branch. |
|
|
|
paths: |
|
|
|
- '/src/i18n/locales/en/**/*.json' |
|
|
|
branches: [ main ] |
|
|
|
workflow_dispatch: # Allow manual triggering |
|
|
|
- "/src/i18n/locales/en/*.json" |
|
|
|
branches: [main] |
|
|
|
workflow_dispatch: # Allow manual triggering |
|
|
|
|
|
|
|
jobs: |
|
|
|
synchronize-with-crowdin: |
|
|
|
@ -20,13 +20,13 @@ jobs: |
|
|
|
- name: Upload sources with Crowdin |
|
|
|
uses: crowdin/github-action@v2 |
|
|
|
with: |
|
|
|
base_url: 'https://meshtastic.crowdin.com/api/v2' |
|
|
|
config: 'crowdin.yml' |
|
|
|
upload_sources: true |
|
|
|
upload_translations: false |
|
|
|
download_translations: false |
|
|
|
crowdin_branch_name: 'main' |
|
|
|
|
|
|
|
base_url: "https://meshtastic.crowdin.com/api/v2" |
|
|
|
config: "crowdin.yml" |
|
|
|
upload_sources: true |
|
|
|
upload_translations: false |
|
|
|
download_translations: false |
|
|
|
crowdin_branch_name: "main" |
|
|
|
|
|
|
|
env: |
|
|
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} |
|
|
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |
|
|
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |
|
|
|
|