What problem does it solve?
Localization workflows across the Opentrons monorepo are simplified by automating the push and pull of translations between local files and Locize. This skill coordinates a cohesive i18n pipeline using a central Python script, enabling teams to keep English and Chinese translations in sync with the cloud service.
Core Features & Use Cases
- Push Local Translations: Upload English and Chinese translations to Locize, consolidating component translations into app-level localization before syncing.
- Download Remote Translations: Retrieve updated translations from Locize and apply them locally, overwriting existing files in app/src/assets/localization/ and components/src/assets/localization/.
- Dry-Run & Safety: Preview actions without applying changes using --dry-run, and validate environment variables (LOCIZE_API_KEY, LOCIZE_PROJECT_ID) before operations.
- CI/CD & Automation: Integrate Locize sync into automated workflows for release pipelines; supports both push and download directions for multi-language teams.
Quick Start
Run uv run scripts/locize_sync.py push-local --dry-run to preview translations that would be uploaded.