* `feat: added internationalization lib, added english labels` * `fixes from code review` * `feat: add crowdin github actions` * `fix: added support for i18n in testing. Fixed broken tests` * `fix: missing translations` * `removed unneded import` * `more components updated with missing translations` * `fixed lint issue` * `Refactor: updated how translations are scoped, updated all references` * `fixing broken tests` * `feat: added language switcher, updated some translations` * `fixed linting issues` * `reverting vite config` * `add english group id's to command palette` * `updated PR template for i18n`
32 lines
1018 B
YAML
32 lines
1018 B
YAML
name: Crowdin Upload Sources Action
|
|
|
|
on:
|
|
push:
|
|
# 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
|
|
|
|
jobs:
|
|
synchronize-with-crowdin:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- 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'
|
|
|
|
env:
|
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |