Lokalise APIv2 Node SDK

Node interface for the Lokalise APIv2.

View the Project on GitHub lokalise/node-lokalise-api




Projects

Project attributes

Fetch projects

API doc

const projects = await lokaliseApi.projects().list({ page: 3, limit: 2 });

projects.items[0].name;

Fetch a single project

API doc

const project = await lokaliseApi.projects().get(project_id);

project.project_type;

Create a project

API doc

const project = await lokaliseApi.projects().create({ name: "Project name", description: "Project description" });

project.project_id;

Update a project

API doc

const project = await lokaliseApi.projects().update(project_id,
  { name: "New name", description: "New description"}
);

project.name;

Empty a project

API doc

Deletes all keys and translations from the project.

const response = await lokaliseApi.projects().empty(project_id);

response.project_id;

Delete a project

API doc

const response = await lokaliseApi.projects().delete(project_id);

response.project_deleted;