Lokalise APIv2 Node SDK

Node interface for the Lokalise APIv2.

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




Snapshots

Snapshot attributes

Fetch snapshots

API doc

const snapshots = await lokaliseApi.snapshots().list({
  project_id: project_id,
  page: 2,
  limit: 1,
});

snapshots.items[0].snapshot_id;

Create snapshot

API doc

const snapshot = await lokaliseApi.snapshots().create({"title": "API snapshot"}, {project_id: project_id});

snapshot.snapshot_id;

Restore snapshot

API doc

const response = await lokaliseApi.snapshots().restore(snapshot_id, {project_id: project_id});

response.project_id;

Delete snapshot

API doc

const response = await lokaliseApi.snapshots().delete(snapshot_id, {project_id: project_id});

response.snapshot_deleted;