5.26.0 • Published 2 days ago

@tolgee/web v5.26.0

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
2 days ago

{% import "../../readmeMacros/macros.njk.md" as macros %}

{{ macros.header('Tolgee JS Web', 'The base of Tolgee JS integrations for Web platform', packageName) }}

What is Tolgee JS Web?

It's the core library of Tolgee JS integrations containing the parts supporting the web platform. For more information about Tolgee JS integrations, visit the docs({{ macros.v5link() }}).

{{ macros.links() }}

{{ macros.installation('web') }}

Usage

First, create a Tolgee instance and run it.

import { Tolgee, DevTools, FormatSimple } from "@tolgee/web";

const tg = Tolgee()
  .use(DevTools())
  .use(FormatSimple())
  .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");
});

{{ macros.why() }}

Development

{{ macros.developmentInstallation() }} {{ macros.developmentCore() }}

{{ macros.developmentTesting('/packages/core') }}

End-to-end (e2e) testing

Each integration is end-to-end tested via cypress. The tests are defined in /e2e/cypress/e2e directory.

To run the e2e tests, simply run the following:

pnpm run e2e run <integration>

E.g.

pnpm run e2e run web

To open and play with e2e tests, run:

pnpm run e2e open <integration>

{{ macros.contributors() }}

5.26.0

2 days ago

5.25.0

10 days ago

5.24.1

21 days ago

5.24.0

24 days ago

5.23.3

28 days ago

5.23.2

29 days ago

5.23.1

30 days ago

5.23.0

1 month ago

5.22.0

2 months ago

5.21.0

2 months ago

5.20.3

2 months ago

5.20.2

2 months ago

5.20.1

2 months ago

5.20.0

2 months ago

5.19.6

3 months ago

5.19.5

3 months ago

5.19.4

3 months ago

5.19.3

4 months ago

5.19.2

4 months ago

5.19.1

4 months ago

5.19.0

5 months ago

5.18.0

5 months ago

5.17.0

5 months ago

5.15.0

6 months ago

5.11.4

8 months ago

5.11.3

8 months ago

5.11.2

8 months ago

5.11.1

9 months ago

5.11.0

9 months ago

5.16.3

6 months ago

5.16.2

6 months ago

5.16.1

6 months ago

5.16.0

6 months ago

5.12.0

8 months ago

5.13.3

7 months ago

5.9.9

10 months ago

5.9.8

10 months ago

5.9.7

10 months ago

5.9.6

10 months ago

5.9.5

10 months ago

5.9.4

10 months ago

5.9.3

10 months ago

5.13.2

7 months ago

5.13.1

7 months ago

5.13.0

7 months ago

5.14.0

6 months ago

5.10.2

10 months ago

5.10.1

10 months ago

5.10.0

10 months ago

5.9.10

10 months ago

5.9.11

10 months ago

5.9.12

10 months ago

5.11.5

8 months ago

5.9.0

11 months ago

5.8.6

12 months ago

5.8.5

12 months ago

5.8.4

12 months ago

5.8.3

1 year ago

5.8.2

1 year ago

5.5.0

1 year ago

5.8.1

1 year ago

5.8.0

1 year ago

5.4.4

1 year ago

5.6.0

1 year ago

5.7.3

1 year ago

5.7.2

1 year ago

5.5.4

1 year ago

5.5.3

1 year ago

5.7.0

1 year ago

5.5.2

1 year ago

5.4.2

1 year ago

5.3.1

1 year ago

5.4.1

1 year ago

5.4.0

1 year ago

5.3.0

1 year ago

5.2.1

1 year ago

5.2.0

1 year ago

5.0.1

1 year ago

5.0.0

1 year ago

5.0.0-alpha.3

1 year ago

5.0.0-alpha.2

1 year ago

5.0.0-alpha.1

1 year ago