Node interface for the Lokalise APIv2.
View the Project on GitHub lokalise/node-lokalise-api
const branches = await lokaliseApi.branches().list({project_id: project_id, page: 2, limit: 3});
branches.items[0].branch_id;
const branch = await lokaliseApi.branches().get(branch_id, {project_id: project_id});
branch.name;
const branch = await lokaliseApi.branches().create(
{"name": "hotfix/really-important"},
{ project_id: project_id}
);
branch.name;
const branch = await lokaliseApi.branches().update(branch_id,
{"name": "hotfix/not-really-important"},
{project_id: project_id}
);
branch.name;
const response = await lokaliseApi.branches().delete(branch_id, {project_id: project_id});
response.branch_deleted;
const response = await lokaliseApi.branches().merge(branch_id_to_merge,
{project_id: project_id},
{"force_conflict_resolve_using": "master"}
)
response.branch_merged;