@zohodesk/i18n 1.0.0-beta.21 → 1.0.0-beta.23

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/README.md CHANGED
@@ -1,8 +1,16 @@
1
1
  # i18n
2
2
 
3
+ # 1.0.0-beta.23
4
+
5
+ - Zoho security version updated.
6
+
7
+ # 1.0.0-beta.22
8
+
9
+ - Data test id added for I18N.js
10
+
3
11
  # 1.0.0-beta.21
4
12
 
5
- Data test id added for dateTimedifformat.js
13
+ - Data test id added for dateTimedifformat.js
6
14
 
7
15
  # 1.0.0-beta.20
8
16
 
@@ -11,7 +19,6 @@ Data test id added for dateTimedifformat.js
11
19
  # 1.0.0-beta.19
12
20
 
13
21
  - In this version we have made changes in i18n provider to call user date format function only if the time zone data is available.
14
-
15
22
  # 1.0.0-beta.18
16
23
 
17
24
  - Localization feature added and incorporated into getI18NValue Method.
@@ -44,6 +44,7 @@ export default class I18N extends React.Component {
44
44
 
45
45
  if (this.props.dataId) {
46
46
  props['data-id'] = this.props.dataId;
47
+ props['data-test-id'] = this.props.dataId;
47
48
  }
48
49
 
49
50
  if (this.props.isHtml) {
@@ -67,6 +68,7 @@ I18N.propTypes = {
67
68
  i18NKey: PropTypes.string.isRequired,
68
69
  isHtml: PropTypes.bool,
69
70
  tag: PropTypes.string,
71
+ dataId: PropTypes.string,
70
72
  values: PropTypes.oneOfType([PropTypes.string, PropTypes.array])
71
73
  };
72
74
  I18N.defaultProps = {
@@ -97,6 +97,7 @@ var I18N = /*#__PURE__*/function (_React$Component) {
97
97
 
98
98
  if (this.props.dataId) {
99
99
  props['data-id'] = this.props.dataId;
100
+ props['data-test-id'] = this.props.dataId;
100
101
  }
101
102
 
102
103
  if (this.props.isHtml) {
@@ -125,6 +126,7 @@ I18N.propTypes = {
125
126
  i18NKey: _propTypes["default"].string.isRequired,
126
127
  isHtml: _propTypes["default"].bool,
127
128
  tag: _propTypes["default"].string,
129
+ dataId: _propTypes["default"].string,
128
130
  values: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].array])
129
131
  };
130
132
  I18N.defaultProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/i18n",
3
- "version": "1.0.0-beta.21",
3
+ "version": "1.0.0-beta.23",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "jsnext:main": "es/index.js",
@@ -19,11 +19,11 @@
19
19
  "lint": "react-cli lint"
20
20
  },
21
21
  "dependencies": {
22
- "@zoho/SecurityJS": "5.0.2"
22
+ "@zoho/SecurityJS": "5.2.0"
23
23
  },
24
24
  "react-cli": {
25
25
  "docs": {
26
26
  "componentFolder": "./src"
27
27
  }
28
28
  }
29
- }
29
+ }
@@ -41,6 +41,7 @@ export default class I18N extends React.Component {
41
41
  //const child=this.getI18NValue();
42
42
  if (this.props.dataId) {
43
43
  props['data-id'] = this.props.dataId;
44
+ props['data-test-id'] = this.props.dataId;
44
45
  }
45
46
  if (this.props.isHtml) {
46
47
  let dangerouslySetInnerHTML = {
@@ -63,6 +64,7 @@ I18N.propTypes = {
63
64
  i18NKey: PropTypes.string.isRequired,
64
65
  isHtml: PropTypes.bool,
65
66
  tag: PropTypes.string,
67
+ dataId: PropTypes.string,
66
68
  values: PropTypes.oneOfType([PropTypes.string, PropTypes.array])
67
69
  };
68
70
  I18N.defaultProps = {