Loco CLI is a command-line interface tool designed to automate the synchronization of project translations with the Loco localization platform (localise.biz). It facilitates both pulling translations from Loco into your local project and pushing local changes back to Loco. The current stable version is 3.4.0, with a fairly active release cadence, frequently adding new features, improving types, and updating dependencies as seen in recent changelogs. A key differentiator is its focus as a Node.js-based solution, offering flexibility in configuration via `package.json` or various `.locorc` files, supporting both JSON and YAML formats, and now providing a dedicated documentation website. It aims to streamline the localization workflow for developers using JavaScript/TypeScript projects.
npm install loco-cliVerified import paths — ran on the pinned version, not inferred.
Demonstrates programmatic execution of `loco-cli` commands ('pull' and 'push') within a TypeScript environment, including configuration loading and API key handling.
Upgrade your Node.js environment to version 14 or higher (Node.js 20+ is recommended for latest versions as per v3.1.0 changelog).
Migrate your configuration to a `.locorc` file (JSON, YAML, or JS module) for better maintainability and full feature access. Refer to the official documentation for examples.
Ensure `LOCO_API_KEY` and any other required environment variables are correctly set in your shell or CI/CD pipeline before running `loco-cli` commands.
Run `npm install loco-cli` or `yarn add loco-cli` in your project, or ensure `npx loco-cli` is used for one-off commands if not globally installed.
Set the `LOCO_API_KEY` environment variable in your terminal session (e.g., `export LOCO_API_KEY='your_key_here'`) or in your CI/CD configuration.
Review the package's `index.d.ts` file or documentation for available programmatic exports. For typical usage, invoke `loco-cli` via `npx` or directly from the command line.
No dependency data recorded yet.