Automate translation workflows with Lokalise in CI/CD pipelines. Covers pushing source strings on merge, pulling translations before builds, validating translation completeness, and webhook-triggered deployments.
@lokalise/cli2) or API SDKRead(${CLAUDE_SKILL_DIR}/references/implementation-guide.md)
| Issue | Cause | Solution |
|---|---|---|
| Upload fails | Invalid JSON | Validate locale files before push |
| Missing translations | Download with empty strings | Use --export-empty-as skip |
| Webhook not triggered | Dispatcher not configured | Set up Lokalise webhook to GitHub |
| Wrong file structure | Prefix mismatch | Use --directory-prefix "" in download |
#!/bin/bash
# scripts/lokalise-pull.sh
lokalise2 file download \
--token "$LOKALISE_API_TOKEN" \
--project-id "$LOKALISE_PROJECT_ID" \
--format json \
--unzip-to "src/locales/"
echo "Translations updated"
See CI/CD implementation details for output format specifications.