Integration Examples
CI Workflow Example
- name: Download translations
run: |
curl -H "Authorization: Bearer ${{ secrets.LINGULINK_API_KEY }}" \
"https://app.lingulink.com/api/v1/export?project_id=$PROJECT_ID&language=en&format=json" \
-o ./src/translations/en.jsonRuntime Usage Pattern
- Fetch translations on build/deploy
- Cache locally per environment
- Refresh on release events or scheduled sync
Cron Sync Example
# daily sync at 02:00
0 2 * * * curl -H "Authorization: Bearer $LINGULINK_API_KEY" \
"https://app.lingulink.com/api/v1/export?project_id=$PROJECT_ID&language=en&format=json" \
-o /app/locales/en.jsonSafe Deployment Pattern
- Pull translations during CI
- Validate JSON schema/shape
- Run smoke tests in staging
- Promote build to production
Next Steps
Last updated on