tormozz48 / node-lokalise-api-1

Lokalise API v2 Node.js client.

Home Page:https://lokalise.github.io/node-lokalise-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lokalise API v2 official Node.js client

npm Build Status Test Coverage Downloads total

Official Node interface for the Lokalise API.

Quickstart

Install the library:

npm install @lokalise/node-api

Obtain Lokalise API token in your personal profile, initialize and use the client:

const { LokaliseApi } = require('@lokalise/node-api');

const lokaliseApi = new LokaliseApi({ apiKey: '<apiKey>'});
const projects = lokaliseApi.projects.list();
projects[0].name;

process = await lokaliseApi.files.upload(project_id,
  {data: data_base64, filename: 'test1.json', lang_iso: 'en'})
process.status // => 'queued'

Usage

Detailed documentation can be found at lokalise.github.io/node-lokalise-api.

License

This library is licensed under the BSD 3 Clause. Prior to version 5.1.0 the license was MIT.

Copyright (c) Lokalise group, Ilya Bodrov

About

Lokalise API v2 Node.js client.

https://lokalise.github.io/node-lokalise-api

License:Other


Languages

Language:TypeScript 98.5%Language:JavaScript 1.5%Language:Shell 0.0%