@terap.io/loco-api-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Localise.biz API Client

Usage

Note API_KEY setup in .env file or as runtime variable.

npm i
npm run build
./bin/run <command> <args>

Supported Commands

Output of all commands is JSON format.

  • getAll - download all keys for a given locale
  • getKey - download a key (for a given locale)

Examples

Get a key for a locale:

API_KEY=secret-key ./bin/run getKey common.title en-US

Get a key for all locale:

API_KEY=secret-key ./bin/run getKey common.title

Get all keys for a locale:

API_KEY=secret-key ./bin/run getAll en-US

Get all keys for a locale and save them into JSON file:

API_KEY=secret-key ./bin/run getAll en-US translations.json

Readme

Keywords

none

Package Sidebar

Install

npm i @terap.io/loco-api-client

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

12.7 kB

Total Files

21

Last publish

Collaborators

  • la.stef