i18n-keyless-core 1.2.0 → 1.3.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/dist/types.d.ts +4 -2
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -30,11 +30,13 @@ export interface I18nConfig {
|
|
|
30
30
|
* }
|
|
31
31
|
* ```
|
|
32
32
|
*
|
|
33
|
-
* Then
|
|
33
|
+
* Then i18n-keyless can pass MyComponent's props to i18n-keyless' I18nText
|
|
34
34
|
*
|
|
35
35
|
* ```ts
|
|
36
|
-
* <
|
|
36
|
+
* <I18nText style={style} className={className} whatever={whatever}>My text to translate</I18nText>
|
|
37
37
|
* ```
|
|
38
|
+
*
|
|
39
|
+
* *BE CAREFUL* The component should not be I18nText or a component that uses I18nText to avoid infinite loops during rendering.
|
|
38
40
|
*/
|
|
39
41
|
component?: React.ComponentType<{
|
|
40
42
|
children: string;
|