ClientsNode cli
@belocal/cli
@belocal/cli
The official command-line interface for belocal.dev.
This CLI tool is designed for translating i18n interfaces and managing your static localization files directly from your terminal. It automates the process of localizing your application's UI into multiple languages.
Usage
You can run the CLI directly using npx without installing it globally.
1. Login
Authenticate with your belocal.dev account:
npx @belocal/cli@latest login2. Initialize Configuration
Create a belocal.config.json file in your project root:
npx @belocal/cli@latest initThis command will guide you through setting up your source language, target languages, and the file patterns for your localization files.
3. Translate
Translate your localization files based on your configuration:
npx @belocal/cli@latest translateOther Commands
npx @belocal/cli@latest whoami- Check your current authentication status.npx @belocal/cli@latest logout- Log out from your account.