CI/CD Integration
Validate translations
Section titled “Validate translations”tyndale validate checks that all locales have complete, well-formed translations without making any AI calls:
npx tyndale validateIt exits with code 1 if any issues are found, making it perfect for CI.
GitHub Actions
Section titled “GitHub Actions”name: i18n Validationon: [push, pull_request]
jobs: validate: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: oven-sh/setup-bun@v2 - run: bun install - run: npx tyndale validatePre-commit hook
Section titled “Pre-commit hook”Use with husky or lint-staged:
{ "lint-staged": { "*.{ts,tsx}": "tyndale validate" }}Translation workflow
Section titled “Translation workflow”- Developer wraps content with
<T>ormsg() - Run
npx tyndale translatelocally (requires AI credentials) - Commit the generated locale files in
public/_tyndale/ - CI runs
tyndale validateto catch missing translations - Ship with confidence