JSPM

@tolgee/core

4.3.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 56498
  • Score
    100M100P100Q157784F
  • License MIT

Library providing ability to translate messages directly in context of developed application.

Package Exports

  • @tolgee/core

Readme

Tolgee core library

test workflow @tolgee/core version types typescript twitter github stars

Tolgee

Core library of Tolgee localization toolkit. For more information about Tolgee Toolkit, visit our documentation website toolkit.tolgee.io.

Installation

npm install @tolgee/core --save

Usage

First, create a Tolgee instance and run it.

import {Tolgee} from "@tolgee/core";

const tg = Tolgee.init({
    apiKey: "your_api_key",
    apiUrl: "https://app.tolgee.io",
})

tg.run();

Then, use it to translate your strings.

tg.onLangLoaded.subscribe(() => {
    document.title = tg.translate("hello_world");
});

Features

  • All in One localization solution for your JS application 🙌
  • Out of box in-context localization 🎉
  • Automated screenshot generation 📷
  • Translation management platform 🎈
  • Open-source 🔥

To learn more, check Hello World example.