@rdyl/react-i18n-connect 0.1.1 → 0.1.2

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.1.0 (2025-09-23)
1
+ ## 0.1.2 (2025-09-25)
2
2
 
3
3
 
4
4
 
package/dist/index.js CHANGED
@@ -1,4 +1,15 @@
1
1
  "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
2
13
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
14
  if (k2 === undefined) k2 = k;
4
15
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -52,7 +63,7 @@ var I18nConnect = function (_a) {
52
63
  }
53
64
  var current = __locales__[lang] || {};
54
65
  var initLocales = __locales__[initial] || {};
55
- return Object.assign(initLocales, current);
66
+ return __assign(__assign({}, initLocales), current);
56
67
  }, [lang, loaded, initial, onLoadLocales]);
57
68
  var t = (0, react_1.useCallback)((0, utils_1.ParserI18nFn)(records), [records]);
58
69
  var setLang = (0, react_1.useCallback)(function (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdyl/react-i18n-connect",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",
package/types/type.d.ts DELETED
@@ -1,11 +0,0 @@
1
- /** @i18n */
2
- interface I18nConfig {
3
- locales: Record<Record<string, TRValue>>;
4
- initial: string;
5
- }
6
-
7
- type TRValue = string | number | boolean;
8
-
9
- type TR = (k: string, o?: Record<string, unknown>) => string;
10
-
11
- declare var $t: TR;