@redhat-cloud-services/frontend-components-translations 3.2.0 → 3.2.4

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,6 +1,6 @@
1
1
  # RedHat Cloud Services frontend components - translations
2
2
 
3
- This package is for setting [react-int](https://www.npmjs.com/package/react-intl) with default messages translated accross entire platform. For futher understanding how to pass messages and such follow up `react-int` documentation.
3
+ This package is for setting [react-intl](https://www.npmjs.com/package/react-intl) with default messages translated accross entire platform. For futher understanding how to pass messages and such follow up `react-intl` documentation.
4
4
 
5
5
 
6
6
  ## Usage
@@ -19,10 +19,8 @@ class App extends Component {
19
19
  render() {
20
20
  return (
21
21
  <IntlProvider>
22
- <React.Fragment>
23
- <NotificationsPortal />
24
- <Routes childProps={this.props} />
25
- </React.Fragment>
22
+ <NotificationsPortal />
23
+ <Routes childProps={this.props} />
26
24
  </IntlProvider>
27
25
  );
28
26
  }
@@ -44,10 +42,8 @@ class App extends Component {
44
42
  render() {
45
43
  return (
46
44
  <IntlProvider messages={translatedMessages}>
47
- <React.Fragment>
48
- <NotificationsPortal />
49
- <Routes childProps={this.props} />
50
- </React.Fragment>
45
+ <NotificationsPortal />
46
+ <Routes childProps={this.props} />
51
47
  </IntlProvider>
52
48
  );
53
49
  }
@@ -83,10 +79,8 @@ class App extends Component {
83
79
  render() {
84
80
  return (
85
81
  <IntlProvider locale="cs">
86
- <React.Fragment>
87
- <NotificationsPortal />
88
- <Routes childProps={this.props} />
89
- </React.Fragment>
82
+ <NotificationsPortal />
83
+ <Routes childProps={this.props} />
90
84
  </IntlProvider>
91
85
  );
92
86
  }
@@ -111,10 +105,8 @@ class App extends Component {
111
105
  updateLocaleData([...localeDe])
112
106
  return (
113
107
  <IntlProvider>
114
- <React.Fragment>
115
- <NotificationsPortal />
116
- <Routes childProps={this.props} />
117
- </React.Fragment>
108
+ <NotificationsPortal />
109
+ <Routes childProps={this.props} />
118
110
  </IntlProvider>
119
111
  );
120
112
  }
@@ -1 +1,2 @@
1
+ // eslint-disable-next-line import/prefer-default-export
1
2
  export { default as translatedMessages } from '../locales/data.json';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/frontend-components-translations",
3
- "version": "3.2.0",
3
+ "version": "3.2.4",
4
4
  "description": "Translations package for RedHat Cloud Services project.",
5
5
  "main": "index.js",
6
6
  "module": "esm/index.js",
@@ -28,12 +28,11 @@
28
28
  "url": "https://github.com/RedHatInsights/frontend-components/issues"
29
29
  },
30
30
  "homepage": "https://github.com/RedHatInsights/frontend-components/tree/master/packages/translations#readme",
31
- "dependencies": {
32
- "react-intl": "^5.17.4"
33
- },
34
31
  "peerDependencies": {
35
32
  "prop-types": "^15.6.2",
36
- "react": "^16.5.1"
33
+ "react": ">=16.14.0 || >=17.0.0",
34
+ "react-dom": ">=16.14.0 || >=17.0.0",
35
+ "react-intl": ">=5.17.4"
37
36
  },
38
37
  "optionalDependencies": {
39
38
  "@redhat-cloud-services/frontend-components-utilities": ">=3.0.0"