@rdyl/react-i18n-connect 0.1.0 → 0.1.1

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-04)
1
+ # 0.1.0 (2025-09-23)
2
2
 
3
3
 
4
4
 
package/dist/index.js CHANGED
@@ -51,8 +51,9 @@ var I18nConnect = function (_a) {
51
51
  return loaded;
52
52
  }
53
53
  var current = __locales__[lang] || {};
54
- return current;
55
- }, [lang, loaded, onLoadLocales]);
54
+ var initLocales = __locales__[initial] || {};
55
+ return Object.assign(initLocales, current);
56
+ }, [lang, loaded, initial, onLoadLocales]);
56
57
  var t = (0, react_1.useCallback)((0, utils_1.ParserI18nFn)(records), [records]);
57
58
  var setLang = (0, react_1.useCallback)(function (e) {
58
59
  var cb = function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdyl/react-i18n-connect",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",