@terap.io/loco-api-client
v1.0.5
Published
A simple client of Localise.biz service API.
Downloads
1
Readme
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