react-i18next 16.1.5 → 16.1.6
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 +4 -0
- package/dist/es/package.json +1 -1
- package/icu.macro.js +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
### 16.1.6
|
|
2
|
+
|
|
3
|
+
- fix: fix: handle spread props for inner components in Trans (icu) [1877](https://github.com/i18next/react-i18next/pull/1877)
|
|
4
|
+
|
|
1
5
|
### 16.1.5
|
|
2
6
|
|
|
3
7
|
- fix: Incosistent behaviour of Trans and t. Trans set defaultValue when t call doesn't set the field. [1876](https://github.com/i18next/react-i18next/issues/1876)
|
package/dist/es/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"16.1.
|
|
1
|
+
{"type":"module","version":"16.1.6"}
|
package/icu.macro.js
CHANGED
|
@@ -373,6 +373,9 @@ function jsxElementToDeclaration(jsxElement, t) {
|
|
|
373
373
|
: t.stringLiteral(propName);
|
|
374
374
|
|
|
375
375
|
propsProperties.push(t.objectProperty(propKey, propValue));
|
|
376
|
+
} else if (t.isJSXSpreadAttribute(attr)) {
|
|
377
|
+
// Handle spread attributes like {...spreadProps}
|
|
378
|
+
propsProperties.push(t.spreadElement(attr.argument));
|
|
376
379
|
}
|
|
377
380
|
});
|
|
378
381
|
|