Lokalise APIv2 Node SDK

Node interface for the Lokalise APIv2.

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




OTA freeze periods

Please note that this endpoint requires an instance of LokaliseApiOta with a JWT. Refer to the OTA introduction article to learn more.

List freeze periods

API doc

const freezes = await lokaliseApiOta.otaFreezePeriods().list({
  teamId: 123,
  lokaliseProjectId: "123.abc",
  framework: "ios_sdk",
});

freezes[0].id; // 1234

Create freeze period

API doc

const freeze = await lokaliseApiOta.otaFreezePeriods().create(
  {
    from: "5.0",
    to: "6.0",
    bundleId: 664798,
  },
  {
    teamId: 123,
    lokaliseProjectId: "123.abc",
  },
);

freeze.id; // 789
freeze.from; // "5.0"

Update freeze period

API doc

const freezeId = 789;

const freeze = await lokaliseApiOta.otaFreezePeriods().update(
  freezeId,
  {
    from: "5.0",
    to: "7.0",
    bundleId: 664798,
  },
  {
    teamId: 123,
    lokaliseProjectId: "123.abc",
  },
);

freeze.to; // "7.0"

Delete freeze period

API doc

const freezeId = 789;

const response = await lokaliseApiOta.otaFreezePeriods().delete(freezeId, {
  teamId: 123,
  lokaliseProjectId: "123.abc",
});

response.deleted; // true