Back to articles

Introducing GitHub Action Integration

Automate your translation workflow with our new GitHub Action. Push changes and sync translations seamlessly.

Introducing GitHub Action Integration

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:

OptionDescriptionDefault
api-keyYour locamorph API keyRequired
project-idYour project identifierRequired
pushPush local changes to locamorphtrue
pullPull translations from locamorphtrue
fail-on-missingFail if translations are missingfalse

Benefits

By integrating locamorph into your GitHub workflow, you can:

  1. Reduce manual work - No more manual export/import of translation files
  2. Catch issues early - Identify missing translations before they reach production
  3. 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.