0.4.1 • Published 5 months ago

@mvxivy/lokalise-cli v0.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Lokalise CLI

This script is used to download translations from Lokalise to your project and update.

Installation

npm install -D @mvxivy/lokalise-cli

Usage

CLI

ltu

Node.js

import { fetchLocales } from "@mvxivy/lokalise-cli";

const config = {
  apiKey: '<your api key>',
  projectId: '<your project id>',
  outputDir: '<output directory>',
  // ... other options
}

fetchLocales(config);

Configuration

If you use cli method, you can create a .lokalise.json file in the root of your project and add the following configuration options.

If you want use it as node.js script package, you can pass the configuration object as an argument to the fetchLocales function.

Configuration options

OptionDescriptiontypeDefault
apiKeyLokalise API keystring-
projectIdLokalise project idstring-
outputDirOutput directory for translationsstring-
processtype of interaction with lokalise api'keys' or 'files'-
processesOptionsoptions for processesobject-
processesOptions.keysoptions for keys processobject-
processesOptions.filesoptions for files processstring-

Possible options for processesOptions.keys and processesOptions.files can be found in the Lokalise API documentation.

0.4.1

5 months ago

0.4.0

5 months ago

0.3.0

9 months ago

0.2.3

9 months ago

0.2.2

10 months ago

0.2.1

11 months ago