JSPM

@tolgee/core

4.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 58815
  • Score
    100M100P100Q154485F
  • License MIT

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

Package Exports

  • @tolgee/core
  • @tolgee/core/dist/tolgee.esm.js
  • @tolgee/core/index.js
  • @tolgee/core/lib/Constants/Global
  • @tolgee/core/lib/Constants/Global.js
  • @tolgee/core/lib/helpers/TextHelper
  • @tolgee/core/lib/helpers/TextHelper.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tolgee/core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.