Node interface for the Lokalise APIv2.
View the Project on GitHub lokalise/node-lokalise-api
const segments = await lokaliseApi.segments().list({
project_id: '123.abc',
key_id: 12345,
language_iso: "en",
disable_references: 1,
filter_unverified: 0,
});
const segment_number = 2;
const segment = await lokaliseApi.segments().get(segment_number, {
project_id: '123.abc',
key_id: 12345,
language_iso: "en",
disable_references: 0,
});
const segment_number = 2;
const segment = await lokaliseApi.segments().update(
segment_number,
{
value: "Hello!",
is_fuzzy: true,
},
{ project_id: '123.abc', key_id: 12345, language_iso: "en" }
);