We’re excited to announce our new GitHub Action integration, making it easier than ever to automate your translation workflow directly within your CI/CD pipeline.
What’s New
Our GitHub Action allows you to:
- Auto-sync translations on every push to your main branch
- Validate translation files in pull requests
- Generate reports on missing or outdated translations
- Block merges when critical translations are missing
Quick Setup
Add the following to your .github/workflows/i18n.yml:
name: Sync Translations
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Sync with locamorph
uses: locamorph/sync-action@v1
with:
api-key: ${{ secrets.TEAAAMS_API_KEY }}
project-id: your-project-id
Configuration Options
The action supports various configuration options:
| Option | Description | Default |
|---|---|---|
api-key | Your locamorph API key | Required |
project-id | Your project identifier | Required |
push | Push local changes to locamorph | true |
pull | Pull translations from locamorph | true |
fail-on-missing | Fail if translations are missing | false |
Benefits
By integrating locamorph into your GitHub workflow, you can:
- Reduce manual work - No more manual export/import of translation files
- Catch issues early - Identify missing translations before they reach production
- Keep translations in sync - Always have the latest translations in your codebase
Get started today by visiting your project settings and generating an API key.