@rdyl/react-i18n-connect 0.2.3 → 0.2.4

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
@@ -1,4 +1,4 @@
1
- ## 0.2.2 (2026-01-22)
1
+ ## 0.2.4 (2026-03-26)
2
2
 
3
3
 
4
4
 
package/dist/index.js CHANGED
@@ -97,6 +97,16 @@ var I18nConnect = function (_a) {
97
97
  setReady(true);
98
98
  }
99
99
  }, [initial]);
100
+ (0, react_1.useEffect)(function () {
101
+ if (window) {
102
+ // @ts-ignore
103
+ window.$t = t;
104
+ }
105
+ else if (global) {
106
+ // @ts-ignore
107
+ global.$t = t;
108
+ }
109
+ }, [t]);
100
110
  return (react_1.default.createElement(I18nCtx.Provider, { value: {
101
111
  locales: locales,
102
112
  lang: lang,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdyl/react-i18n-connect",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",