Skip to main content

Installation

To install Tolgee run:

npm install @tolgee/core --save

To install UI bundle for in-context translating you will also need to install package @tolgee/ui.

npm install @tolgee/ui --save

After installing packages you can use it like this:

import {Tolgee} from "@tolgee/core";import {UI} from "@tolgee/ui";
const tg = new Tolgee({    apiKey: "your_api_key",    apiUrl: "https://app.tolgee.io",    ui: UI})
tg.run();

Then you can use Tolgee instance the same way as described in translating programmatically.