Skip to content
Jakub edited this page Feb 5, 2025 · 21 revisions

WORK IN PROGRESS

Translation Management for software projects

The easiest way to manage translation files for web and mobile apps.

Tests Maintainability codecov

SimpleLocalize CLI is a command-line tool that allows you to manage translations in your software project, and it's a great tool for CI/CD pipelines and localization automation.

  • Upload and download translations. The main purpose of the command-line tool is to upload and download translation files from Translation Editor to your project.
  • Auto-translate strings. Start auto-translation jobs from the command-line and get translated strings in a few minutes.
  • Hosted translations management. Push and pull translations from Translation Hosting to your project using the command-line.
  • GitHub Actions support. Use SimpleLocalize CLI in your GitHub Actions workflows.
  • Check project status. Get project details from the command-line and check if your translations are up-to-date.

Installation

The installation process is automated by command-line scripts. Both scripts for Windows (PowerShell) and macOS/Linux/Windows downloads a binary file with CLI, copies it to user files and makes it available to run anywhere in the system from a command-line.

# macOs / Linux / Windows (WSL)
curl -s https://get.simplelocalize.io/2.7/install | bash

# Windows (PowerShell)
. { iwr -useb https://get.simplelocalize.io/2.7/install-windows } | iex;

To change or update the CLI version, run the installation script with the desired version number in the URL, e.g.:

  • https://get.simplelocalize.io/2.0.6/install installs version 2.0.6 on macOS/Linux/Windows (WSL)
  • https://get.simplelocalize.io/2.0.6/install-windows installs version 2.0.6 on Windows (PowerShell)

See releases for the list of available versions.

Usage

The command-line tool offers several commands to execute. All of them requires Project API Key that is unique for each project. You can set apiKey in simplelocalize.yml configuration file, pass it as parameter with --apiKey or set it by environment variable SIMPLELOCALIZE_API_KEY.

simplelocalize [command] ...parameters

Available commands:

  • init - creates a sample configuration file
  • status - gets translation project details
  • upload - uploads translation files or translation keys
  • download - downloads translation files
  • auto-translate - starts auto-translation jobs
  • pull - downloads translation files from Translation Hosting
  • publish - publishes translations to Translation Hosting
  • purge - removes all translation, translation keys and languages from the project
  • extract - finds and extracts translation keys in your project files

Create configuration file

Command creates a sample configuration file in the current directory. The configuration file simplifies the usage of the command-line tool by providing a default configuration for the project and allowing to omit some parameters.

simplelocalize init

SimpleLocalize CLI

📦 Getting Started

Links


Clone this wiki locally