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

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,12 @@
1
1
  # i18n
2
2
 
3
+ # 1.0.0-beta.22
4
+
5
+ - Data test id added for I18N.js
6
+
3
7
  # 1.0.0-beta.21
4
8
 
5
- Data test id added for dateTimedifformat.js
9
+ - Data test id added for dateTimedifformat.js
6
10
 
7
11
  # 1.0.0-beta.20
8
12
 
@@ -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) {
@@ -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) {
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.22",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "jsnext:main": "es/index.js",
@@ -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 = {