Node interface for the Lokalise APIv2.

Documentation navigation

Exports

List exports

API doc

const result = await lokaliseVantageApi.exports().list({
  project_id,
  limit: 10,
});

result.items[0].status; // "COMPLETED"

Fetch an export

API doc

const result = await lokaliseVantageApi.exports().get({
  project_id,
  export_id,
});

result.status; // "COMPLETED"
esult.totalItemsCount; // 2

Create export

API doc

const result = await lokaliseVantageApi.exports().create(
  { project_id },
  { locales: ["fr"] },
);

result.exportId; // "01a14ff9-0232-48da-7ab0-2144dc32fd5d"
result.status; // "IN_PROGRESS"

Get export download URL

API doc

const result = await lokaliseVantageApi.exports().getDownloadUrl({
  project_id,
  export_id,
});

result.downloadUrl; // "https://example.com/bundle"