@tolgee/svelte 5.0.0-alpha.1 → 5.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.0.0-alpha.3](https://github.com/tolgee/tolgee-js/compare/v4.9.3...v5.0.0-alpha.3) (2023-01-11)
7
+
8
+
9
+ * feat!: Complete redesign, namespaces support, refactor (#3109) ([1978b91](https://github.com/tolgee/tolgee-js/commit/1978b917dfec2df89f59de4cd10b632920c47e57)), closes [#3109](https://github.com/tolgee/tolgee-js/issues/3109)
10
+
11
+
12
+ ### BREAKING CHANGES
13
+
14
+ * Complete redesign, brand new API
15
+
16
+
17
+
18
+
19
+
20
+ # 5.0.0-alpha.2 (2023-01-09)
21
+
22
+ **Note:** Version bump only for package @tolgee/svelte
23
+
24
+
25
+
26
+
27
+
6
28
  # 5.0.0-alpha.1 (2022-11-29)
7
29
 
8
30
 
package/README.md CHANGED
@@ -1,54 +1,97 @@
1
- # Tolgee for Svelte
1
+ <!-- This file was generated using pnpm generate-readmes script
2
+
3
+ Don't edit this file. Edit the README.md.njk. Macros can be found in readmeMacros/macros.njk
4
+
5
+ -->
6
+
7
+ <h1 align="center" style="border-bottom: none">
8
+ <b>
9
+ <a href="https://tolgee.io">Tolgee for Svelte</a><br>
10
+ </b>
11
+ The Tolgee i18n SDK for Svelte
12
+ <br>
13
+ </h1>
14
+
15
+ <div align="center">
16
+
17
+ [![Logo](https://user-images.githubusercontent.com/18496315/188628892-33fcc282-26f1-4035-8105-95952bd93de9.svg)](https://tolgee.io)
18
+
19
+ Tolgee is an open-source alternative to Crowdin, Phrase, or Lokalise with its very own revolutionary integrations.
2
20
 
3
21
  ![test workflow](https://github.com/tolgee/tolgee-js/actions/workflows/test.yml/badge.svg)
4
- ![@tolgee/svelte version](https://img.shields.io/npm/v/@tolgee/svelte?label=%40tolgee%2Fsvelte)
22
+
23
+ ![@tolgee/svelte version](https://img.shields.io/npm/v/@tolgee/svelte?label=@tolgee/svelte)
24
+
5
25
  ![types typescript](https://img.shields.io/badge/Types-Typescript-blue)
26
+ ![typescript](https://img.shields.io/github/languages/top/tolgee/tolgee-js)
6
27
  ![licence](https://img.shields.io/github/license/tolgee/tolgee-js)
7
- [![twitter](https://img.shields.io/twitter/follow/Tolgee_i18n?style=social)](https://twitter.com/Tolgee_i18n)
8
- [![github stars](https://img.shields.io/github/stars/tolgee/tolgee-js?style=social)](https://github.com/tolgee/tolgee-js)
28
+ [![github stars](https://img.shields.io/github/stars/tolgee/tolgee-js?style=social&label=Tolgee%20JS)](https://github.com/tolgee/tolgee-js)
29
+ [![github stars](https://img.shields.io/github/stars/tolgee/server?style=social&label=Tolgee%20Server)](https://github.com/tolgee/server)
30
+ [![Github discussions](https://img.shields.io/github/discussions/tolgee/tolgee-platform)](https://github.com/tolgee/tolgee-platform/discussions)
31
+ </div>
9
32
 
10
- Svelte integration library (SDK) of Tolgee. For more information about using Tolgee with Svelte, visit our
11
- [documentation website 📖](https://tolgee.io/docs).
33
+ <div align="center">
12
34
 
13
- [<img src="https://raw.githubusercontent.com/tolgee/documentation/main/tolgee_logo_text.svg" alt="Tolgee" width="200" />](https://tolgee.io)
35
+ [<img src="https://img.shields.io/badge/-Facebook-424549?style=social&logo=facebook" height=25 />](https://www.facebook.com/Tolgee.i18n)
36
+ [<img src="https://img.shields.io/badge/-Twitter-424549?style=social&logo=twitter" height=25 />](https://twitter.com/Tolgee_i18n)
37
+ [<img src="https://img.shields.io/badge/-Linkedin-424549?style=social&logo=linkedin" height=25 />](https://www.linkedin.com/company/tolgee)
14
38
 
15
- Lokalize (translate) your Svelte projects to multiple languages with Tolgee. Integration of Tolgee is extremely simple!
16
- 🇯🇵 🇰🇷 🇩🇪 🇨🇳 🇺🇸 🇫🇷 🇪🇸 🇮🇹 🇷🇺 🇬🇧
39
+ **Become part of the family. Join [slack channel <img src="https://img.shields.io/badge/-Tolgee Comunity-424549?style=social&logo=slack" height=25 />](https://join.slack.com/t/tolgeecommunity/shared_invite/zt-195isb5u8-_RcSRgVJfvgsPpOBIok~IQ)**
17
40
 
18
- ## Features
41
+ </div>
19
42
 
20
- - All in One localization solution for your Svelte application 🙌
21
- - Out of box in-context localization 🎉
22
- - Automated screenshot generation 📷
23
- - Translation management platform 🎈
24
- - Supports SSR with svelte kit 🎉
25
- - Open-source 🔥
26
43
 
27
- ## Installation
28
44
 
29
- First, install the package.
45
+ # What is Tolgee for Svelte?
46
+ Svelte integration library of Tolgee. With this package, it's super simple to add i18n to your Svelte app!
47
+ For more information about using Tolgee with Svelte, visit the [docs 📖](https://tolgee.io/integrations/svelte).
30
48
 
31
- npm install @tolgee/svelte
49
+ Localize (translate) your Svelte or SvelteKit projects to multiple languages with Tolgee.
50
+ Integration of Tolgee is extremely simple! 🇯🇵 🇰🇷 🇩🇪 🇨🇳 🇺🇸 🇫🇷 🇪🇸 🇮🇹 🇷🇺 🇬🇧
32
51
 
33
- Then use the library in your app:
34
52
 
35
- ```sveltehtml
53
+ ## Quick links
54
+ - [Tolgee for Angular docs](https://tolgee.io/js-sdk/5.0.0-alpha.1/integrations/svelte/installation)
55
+ - [Tolgee JS SDK docs](https://tolgee.io/js-sdk)
56
+ - [Tolgee Website](https://tolgee.io)
57
+ - Product (Learn more about the great features)
58
+ - [Dev tools](https://tolgee.io/features/dev-tools)
59
+ - [Translation assistance](https://tolgee.io/features/translation-assistance)
60
+ - [Collaboration](https://tolgee.io/features/collaboration)
61
+ - [Tolgee platform docs](https://tolgee.io/platform)
62
+
36
63
 
37
- <script lang="ts">
38
- import { TolgeeProvider } from "@tolgee/svelte";
39
- import type { TolgeeConfig } from "@tolgee/web";
40
64
 
41
- const tolgeeConfig = {
42
- preloadFallback: true,
65
+ ## Installation
66
+
67
+ ```
68
+ npm install @tolgee/svelte
69
+ ```
43
70
 
44
- // when using SvelteKit and .env, otherwise you can set those params directly or use some dotenv library
45
- apiUrl: import.meta.env.VITE_TOLGEE_API_KEY,
46
- apiKey: import.meta.env.VITE_TOLGEE_API_KEY
47
- } as TolgeeConfig;
71
+
72
+ Then use the library in your app:
73
+
74
+ ```svelte
75
+ <script lang="ts">
76
+ import {
77
+ TolgeeProvider,
78
+ Tolgee,
79
+ SveltePlugin,
80
+ FormatSimple,
81
+ } from '@tolgee/svelte';
82
+
83
+ const tolgee = Tolgee()
84
+ .use(SveltePlugin())
85
+ .use(FormatSimple())
86
+ .init({
87
+ apiUrl: import.meta.env.VITE_TOLGEE_API_URL,
88
+ apiKey: import.meta.env.VITE_TOLGEE_API_KEY,
89
+ language: 'en',
90
+ });
48
91
  </script>
49
92
 
50
- <TolgeeProvider config={tolgeeConfig}>
51
- <div slot="loading-fallback">Loading...</div>
93
+ <TolgeeProvider {tolgee}>
94
+ <div slot="fallback">Loading...</div>
52
95
  <slot />
53
96
  </TolgeeProvider>
54
97
  ```
@@ -59,55 +102,120 @@ To translate texts using Tolgee Svelte integration, you can use `T` component or
59
102
 
60
103
  ### T component
61
104
 
62
- ```sveltehtml
63
-
105
+ ```svelte
64
106
  <script>
65
- import { T } from "@tolgee/svelte";
107
+ import { T } from '@tolgee/svelte';
66
108
  </script>
67
109
 
68
-
69
110
  <T keyName="key" defaultValue="This is default" />
70
111
  ```
71
112
 
72
113
  ### getTranslate function
73
114
 
74
- The `getTranslate` function returns store containing the function, which actually translates your key.
115
+ The `getTranslate` function returns a store containing the function, which translates your key.
75
116
 
76
- ```sveltehtml
117
+ ```svelte
77
118
  <script>
78
- import { getTranslate } from "@tolgee/svelte";
119
+ import { getTranslate } from '@tolgee/svelte';
79
120
 
80
- const t = getTranslate();
121
+ const { t } = getTranslate();
81
122
  </script>
82
123
 
83
-
84
- {$t({ key: "this_is_a_key", parameters: { key: "value", key2: "value2" } })}
124
+ {$t('this_is_a_key', { key: 'value', key2: 'value2' })}
85
125
  ```
86
126
 
87
127
  ### Changing the language
88
128
 
89
- To change the current language, use `getLanguageStore` method. For example, you can bind it to select value.
129
+ To change the current language, use `getLanguageStore` method. For example, you can bind it to a select value.
90
130
 
91
- ```sveltehtml
131
+ ```svelte
92
132
  <script lang="ts">
93
- import { getLanguageStore } from "@tolgee/svelte";
133
+ import { getTolgee } from '@tolgee/svelte';
134
+
135
+ const tolgee = getTolgee(['language']);
94
136
 
95
- const languageStore = getLanguageStore();
137
+ function handleLanguageChange(e) {
138
+ $tolgee.changeLanguage(e.currentTarget.value);
139
+ }
96
140
  </script>
97
141
 
98
- <select bind:value={$languageStore} class="lang-selector">
99
- <option value="en">🇬🇧 English</option>
100
- <option value="cs">🇨🇿 česky</option>
101
- <option value="fr">🇫🇷 français</option>
102
- <option value="de">🇩🇪 Deutsch</option>
142
+ <select value={$tolgee.getLanguage()} on:change={handleLanguageChange}>
143
+ ...
103
144
  </select>
104
145
  ```
105
146
 
147
+
106
148
  ## Prerequisites
107
149
 
108
- 1. You have some Svelte based project
109
- 2. You have generated API key from [Tolgee Cloud](https://app.tolgee.io) or self-hosted Tolgee instance.
150
+ 1. You have some Svelte-based project
151
+ 2. You have generated an API key from [Tolgee Cloud](https://app.tolgee.io) or a self-hosted Tolgee instance.
152
+
153
+
154
+
155
+ ## Why to use Tolgee?
156
+ Because it saves a lot of time, you would spend on localization tasks without it. Because it enables you to provide perfectly translated software.
157
+
158
+ ### Features
159
+
160
+ - All-in-one localization solution for your JS application 🙌
161
+ - Out-of-box in-context localization 🎉
162
+ - Automated screenshot generation 📷
163
+ - Translation management platform 🎈
164
+ - Open-source 🔥
165
+
166
+ ![Frame 47](https://user-images.githubusercontent.com/18496315/188637819-ac4eb02d-7859-4ca8-9807-27818a52782d.png)
167
+ Read more on the [Tolgee website](https://tolgee.io)
168
+
169
+
170
+ ## Development
171
+
172
+ We welcome your PRs.
173
+
174
+ To develop the package locally:
175
+ 1. Clone [the repository](https://github.com/tolgee/tolgee-js)
176
+ 1. Install the packages in the repository root
177
+ ```
178
+ pnpm install
179
+ ```
180
+
181
+
182
+ 1. Run the development script
183
+ ```
184
+ pnpm develop:svelte
185
+ ```
186
+ This runs the development suite of this monorepo for the `svelte` integration. The changes in each dependency package are
187
+ automatically built and propagated to the test application, which you can open and play within the browser.
188
+
189
+
190
+
191
+
192
+ ### Testing
193
+
194
+ To run Jest tests of this package, execute
195
+ ```
196
+ npm run test
197
+ ```
198
+ In the `/packages/svelte` directory.
199
+
200
+
201
+
202
+
203
+ ### End-to-end (e2e) testing
204
+ To run the e2e tests, simply execute
205
+ ```
206
+ pnpm run e2e run svelte
207
+ ```
208
+
209
+ To open and play with e2e tests, run:
210
+ ```
211
+ pnpm run e2e open svelte
212
+ ```
213
+
214
+
215
+
216
+ ## Contributors
110
217
 
111
- ## Quick integration guide
218
+ <a href="https://github.com/tolgee/tolgee-platform/graphs/contributors">
219
+ <img alt="contributors" src="https://contrib.rocks/image?repo=tolgee/tolgee-js"/>
220
+ </a>
112
221
 
113
- Learn more at our [documentation website 📖](https://tolgee.io).
package/README.njk.md ADDED
@@ -0,0 +1,102 @@
1
+ {% import "../../readmeMacros/macros.njk.md" as macros %}
2
+ {{ macros.header('Tolgee for Svelte', 'The Tolgee i18n SDK for Svelte', packageName) }}
3
+
4
+ # What is Tolgee for Svelte?
5
+ Svelte integration library of Tolgee. With this package, it's super simple to add i18n to your Svelte app!
6
+ For more information about using Tolgee with Svelte, visit the [docs 📖](https://tolgee.io/integrations/svelte).
7
+
8
+ Localize (translate) your Svelte or SvelteKit projects to multiple languages with Tolgee.
9
+ Integration of Tolgee is extremely simple! 🇯🇵 🇰🇷 🇩🇪 🇨🇳 🇺🇸 🇫🇷 🇪🇸 🇮🇹 🇷🇺 🇬🇧
10
+
11
+ {{ macros.integrationLinks('Tolgee for Angular docs', macros.v5link('integrations/svelte/installation')) }}
12
+
13
+ {{ macros.installation('svelte') }}
14
+
15
+ Then use the library in your app:
16
+
17
+ ```svelte
18
+ <script lang="ts">
19
+ import {
20
+ TolgeeProvider,
21
+ Tolgee,
22
+ SveltePlugin,
23
+ FormatSimple,
24
+ } from '@tolgee/svelte';
25
+
26
+ const tolgee = Tolgee()
27
+ .use(SveltePlugin())
28
+ .use(FormatSimple())
29
+ .init({
30
+ apiUrl: import.meta.env.VITE_TOLGEE_API_URL,
31
+ apiKey: import.meta.env.VITE_TOLGEE_API_KEY,
32
+ language: 'en',
33
+ });
34
+ </script>
35
+
36
+ <TolgeeProvider {tolgee}>
37
+ <div slot="fallback">Loading...</div>
38
+ <slot />
39
+ </TolgeeProvider>
40
+ ```
41
+
42
+ ## Usage
43
+
44
+ To translate texts using Tolgee Svelte integration, you can use `T` component or `getTranslate` function.
45
+
46
+ ### T component
47
+
48
+ ```svelte
49
+ <script>
50
+ import { T } from '@tolgee/svelte';
51
+ </script>
52
+
53
+ <T keyName="key" defaultValue="This is default" />
54
+ ```
55
+
56
+ ### getTranslate function
57
+
58
+ The `getTranslate` function returns a store containing the function, which translates your key.
59
+
60
+ ```svelte
61
+ <script>
62
+ import { getTranslate } from '@tolgee/svelte';
63
+
64
+ const { t } = getTranslate();
65
+ </script>
66
+
67
+ {$t('this_is_a_key', { key: 'value', key2: 'value2' })}
68
+ ```
69
+
70
+ ### Changing the language
71
+
72
+ To change the current language, use `getLanguageStore` method. For example, you can bind it to a select value.
73
+
74
+ ```svelte
75
+ <script lang="ts">
76
+ import { getTolgee } from '@tolgee/svelte';
77
+
78
+ const tolgee = getTolgee(['language']);
79
+
80
+ function handleLanguageChange(e) {
81
+ $tolgee.changeLanguage(e.currentTarget.value);
82
+ }
83
+ </script>
84
+
85
+ <select value={$tolgee.getLanguage()} on:change={handleLanguageChange}>
86
+ ...
87
+ </select>
88
+ ```
89
+
90
+ {{ macros.prereq('Svelte') }}
91
+
92
+ {{ macros.why() }}
93
+
94
+ ## Development
95
+ {{ macros.developmentInstallation() }}
96
+ {{ macros.development('svelte') }}
97
+
98
+ {{ macros.developmentTesting('/packages/svelte') }}
99
+
100
+ {{ macros.e2eTesting('svelte') }}
101
+
102
+ {{ macros.contributors() }}
package/getTolgee.d.ts CHANGED
@@ -3,6 +3,7 @@ export declare const getTolgee: (events?: TolgeeEvent[]) => {
3
3
  subscribe: (this: void, run: import("svelte/store").Subscriber<Readonly<{
4
4
  on: import("@tolgee/web").TolgeeOn<keyof import("@tolgee/web").EventType>;
5
5
  onNsUpdate: (handler: import("@tolgee/web").Listener<undefined>) => import("@tolgee/web").SubscriptionSelective;
6
+ setEmmiterActive: (active: boolean) => void;
6
7
  getLanguage: () => string;
7
8
  getPendingLanguage: () => string;
8
9
  changeLanguage: (language: string) => Promise<void>;
@@ -41,8 +42,9 @@ export declare const getTolgee: (events?: TolgeeEvent[]) => {
41
42
  fallbackNs?: import("@tolgee/web").FallbackGeneral;
42
43
  defaultNs: string;
43
44
  staticData?: import("@tolgee/web").TolgeeStaticData;
44
- observerOptions: import("@tolgee/web").ObserverOptionsInternal;
45
45
  observerType: "invisible" | "text";
46
+ observerOptions: import("@tolgee/web").ObserverOptionsInternal;
47
+ onFormatError: import("@tolgee/web").OnFormatError;
46
48
  };
47
49
  isDev: () => boolean;
48
50
  wrap: (params: import("@tolgee/web").WrapperWrapProps) => string;
@@ -57,6 +59,7 @@ export declare const getTolgee: (events?: TolgeeEvent[]) => {
57
59
  }>>, invalidate?: (value?: Readonly<{
58
60
  on: import("@tolgee/web").TolgeeOn<keyof import("@tolgee/web").EventType>;
59
61
  onNsUpdate: (handler: import("@tolgee/web").Listener<undefined>) => import("@tolgee/web").SubscriptionSelective;
62
+ setEmmiterActive: (active: boolean) => void;
60
63
  getLanguage: () => string;
61
64
  getPendingLanguage: () => string;
62
65
  changeLanguage: (language: string) => Promise<void>;
@@ -95,8 +98,9 @@ export declare const getTolgee: (events?: TolgeeEvent[]) => {
95
98
  fallbackNs?: import("@tolgee/web").FallbackGeneral;
96
99
  defaultNs: string;
97
100
  staticData?: import("@tolgee/web").TolgeeStaticData;
98
- observerOptions: import("@tolgee/web").ObserverOptionsInternal;
99
101
  observerType: "invisible" | "text";
102
+ observerOptions: import("@tolgee/web").ObserverOptionsInternal;
103
+ onFormatError: import("@tolgee/web").OnFormatError;
100
104
  };
101
105
  isDev: () => boolean;
102
106
  wrap: (params: import("@tolgee/web").WrapperWrapProps) => string;
@@ -112,6 +116,7 @@ export declare const getTolgee: (events?: TolgeeEvent[]) => {
112
116
  value: Readonly<{
113
117
  on: import("@tolgee/web").TolgeeOn<keyof import("@tolgee/web").EventType>;
114
118
  onNsUpdate: (handler: import("@tolgee/web").Listener<undefined>) => import("@tolgee/web").SubscriptionSelective;
119
+ setEmmiterActive: (active: boolean) => void;
115
120
  getLanguage: () => string;
116
121
  getPendingLanguage: () => string;
117
122
  changeLanguage: (language: string) => Promise<void>;
@@ -150,8 +155,9 @@ export declare const getTolgee: (events?: TolgeeEvent[]) => {
150
155
  fallbackNs?: import("@tolgee/web").FallbackGeneral;
151
156
  defaultNs: string;
152
157
  staticData?: import("@tolgee/web").TolgeeStaticData;
153
- observerOptions: import("@tolgee/web").ObserverOptionsInternal;
154
158
  observerType: "invisible" | "text";
159
+ observerOptions: import("@tolgee/web").ObserverOptionsInternal;
160
+ onFormatError: import("@tolgee/web").OnFormatError;
155
161
  };
156
162
  isDev: () => boolean;
157
163
  wrap: (params: import("@tolgee/web").WrapperWrapProps) => string;
package/index.d.ts CHANGED
@@ -2,6 +2,6 @@ export { default as T } from './T.svelte';
2
2
  export { default as getTranslate } from './getTranslate';
3
3
  export { default as TolgeeProvider } from './TolgeeProvider.svelte';
4
4
  export { getTolgeeContext } from './getTolgeeContext';
5
- export { SveltePlugin } from './SveltePlugin';
5
+ export { GlobalContextPlugin } from './GlobalContextPlugin';
6
6
  export { getTolgee } from './getTolgee';
7
7
  export * from '@tolgee/web';
package/index.js CHANGED
@@ -2,6 +2,6 @@ export { default as T } from './T.svelte';
2
2
  export { default as getTranslate } from './getTranslate';
3
3
  export { default as TolgeeProvider } from './TolgeeProvider.svelte';
4
4
  export { getTolgeeContext } from './getTolgeeContext';
5
- export { SveltePlugin } from './SveltePlugin';
5
+ export { GlobalContextPlugin } from './GlobalContextPlugin';
6
6
  export { getTolgee } from './getTolgee';
7
7
  export * from '@tolgee/web';
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@tolgee/svelte",
3
- "version": "5.0.0-alpha.1",
3
+ "version": "5.0.0-alpha.3",
4
4
  "dependencies": {
5
- "@tolgee/web": "^5.0.0-alpha.1"
5
+ "@tolgee/web": "5.0.0-alpha.3"
6
6
  },
7
7
  "devDependencies": {
8
8
  "@sveltejs/adapter-auto": "1.0.0-next.65",
@@ -10,8 +10,8 @@
10
10
  "@sveltejs/package": "1.0.0-next.1",
11
11
  "@testing-library/jest-dom": "^5.16.5",
12
12
  "@testing-library/svelte": "^3.2.1",
13
- "@tolgee/format-icu": "^5.0.0-alpha.1",
14
- "@tolgee/testing": "^5.0.0-alpha.1",
13
+ "@tolgee/format-icu": "5.0.0-alpha.3",
14
+ "@tolgee/testing": "5.0.0-alpha.3",
15
15
  "@tsconfig/svelte": "^3.0.0",
16
16
  "@types/jest": "^28.1.7",
17
17
  "@typescript-eslint/eslint-plugin": "^5.34.0",
@@ -42,7 +42,6 @@
42
42
  "exports": {
43
43
  "./package.json": "./package.json",
44
44
  "./GlobalContextPlugin": "./GlobalContextPlugin.js",
45
- "./SveltePlugin": "./SveltePlugin.js",
46
45
  "./T.svelte": "./T.svelte",
47
46
  "./TolgeeProvider.svelte": "./TolgeeProvider.svelte",
48
47
  "./getTolgee": "./getTolgee.js",
package/SveltePlugin.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { type TolgeePlugin, type InContextOptions } from '@tolgee/web';
2
- export declare const SveltePlugin: (options?: InContextOptions) => TolgeePlugin;
package/SveltePlugin.js DELETED
@@ -1,7 +0,0 @@
1
- import { DevTools, } from '@tolgee/web';
2
- import { GlobalContextPlugin } from './GlobalContextPlugin';
3
- export const SveltePlugin = (options) => (tolgee) => {
4
- tolgee.addPlugin(DevTools(options));
5
- tolgee.addPlugin(GlobalContextPlugin());
6
- return tolgee;
7
- };