Node interface for the Lokalise APIv2.
View the Project on GitHub lokalise/node-lokalise-api
const comments = await lokaliseApi.comments().list_project_comments({
project_id: project_id,
page: 2,
limit: 3
});
comments.items[0].comment_id;
const comments = lokaliseApi.comments().list({
project_id: project_id,
key_id: key_id,
page: 2,
limit: 3
});
comments.items[0].comment_id;
const comments = await lokaliseApi.comments().create(
[
{ comment: "Project comment 1" },
{ comment: "Project comment 2" }
], { project_id: project_id, key_id: key_id });
comments[0].comment;
const comment = await lokaliseApi.comments().get(comment_id, {project_id: project_id, key_id: key_id});
comment.comment_id;
const response = await lokaliseApi.comments().delete(comment_id, {project_id: project_id, key_id: key_id});
response.comment_deleted;