@tolgee/core 5.4.0-rc.210b1663.0 → 5.4.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolgee/core",
3
- "version": "5.4.0-rc.210b1663.0",
3
+ "version": "5.4.0",
4
4
  "description": "Library providing ability to translate messages directly in context of developed application.",
5
5
  "main": "./dist/tolgee.cjs.js",
6
6
  "module": "./dist/tolgee.esm.js",
@@ -67,5 +67,5 @@
67
67
  "access": "public"
68
68
  },
69
69
  "sideEffects": false,
70
- "gitHead": "1f3ea7300503061c603759d893dfbfe97319af83"
70
+ "gitHead": "7516757f652c038ab2c3a065123226cf9db93510"
71
71
  }
@@ -34,7 +34,6 @@ export const Plugins = (
34
34
  ) => {
35
35
  const plugins = {
36
36
  ui: undefined as UiMiddleware | undefined,
37
- observer: undefined as ObserverMiddleware | undefined,
38
37
  };
39
38
 
40
39
  const instances = {
@@ -87,7 +86,7 @@ export const Plugins = (
87
86
  };
88
87
 
89
88
  const hasObserver = () => {
90
- return Boolean(plugins.observer);
89
+ return Boolean(instances.observer);
91
90
  };
92
91
 
93
92
  const addFormatter = (formatter: FormatterMiddleware | undefined) => {
@@ -95,15 +95,4 @@ describe('plugins', () => {
95
95
  expect(tolgee.t({ key: 'hello' })).toEqual('hello|world');
96
96
  tolgee.stop();
97
97
  });
98
-
99
- // it("won't wrap before run", () => {
100
- // const tolgee = TolgeeCore().init({
101
- // language: 'en',
102
- // staticData: { en: { hello: 'world' } },
103
- // });
104
- // tolgee.addPlugin(observerPlugin(false));
105
- // expect(tolgee.t({ key: 'hello' })).toEqual('world');
106
- // tolgee.run();
107
- // expect(tolgee.t({ key: 'hello' })).toEqual('hello|world');
108
- // });
109
98
  });