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.
Files changed (2) hide show
  1. package/dist/types.d.ts +4 -2
  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 you can pass MyComponent's props to i18n-keyless' MyI18nText
33
+ * Then i18n-keyless can pass MyComponent's props to i18n-keyless' I18nText
34
34
  *
35
35
  * ```ts
36
- * <MyI18nText style={style} className={className} whatever={whatever}>My text to translate</MyI18nText>
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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "i18n-keyless-core",
3
3
  "private": false,
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",