Skip to content

simplelocalize/simplelocalize-cli-npm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleLocalize CLI via npm (work in progress)

The main goal of this project is to give frontend developers an easier way to use the SimpleLocalize CLI in their workflows.

Installation

npm install @simplelocalize/[email protected]

After installing the package, it should automatically choose the right binary for your system, download it, and install it into the node_modules/.bin directory, making it available for your scripts in package.json.

The work on this package is in progress, and at the time of writing this documentation, the plugin installs the newest version of the CLI, which is 2.8.0.

Usage

After successfully installing the SimpleLocalize CLI in your project, you should be able to use it in the package.json scripts to build a workflow of your choice.

{
  "name": "My project",
  "version": "1.0.0",
  "private": true,
  "dependencies": {
    "@simplelocalize/cli": "^1.0.8",
  },
  "scripts": {
    "start": "react-scripts start",
    "sl:download": "simplelocalize download",
    "sl:upload": "simplelocalize upload",
    "sl:autotranslate": "simplelocalize autotranslate"
  },
}

Learn more about SimpleLocalize CLI commands

System installaton

To install the CLI globally in your system please follow the instructions here: https://simplelocalize.io/docs/cli/get-started/