react-localization 1.0.16 → 1.0.19
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 +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ It's possible to force a language different from the interface one.
|
|
|
19
19
|
|
|
20
20
|
## Usage
|
|
21
21
|
|
|
22
|
-
In the React class that you want to localize require the library and define the strings object passing to the constructor a simple object containing a language key (i.e. en, it, fr..) and then a list of key-value pairs with the needed localized strings.
|
|
22
|
+
In the React class that you want to localize, require the library and define the strings object passing to the constructor a simple object containing a language key (i.e. en, it, fr..) and then a list of key-value pairs with the needed localized strings.
|
|
23
23
|
|
|
24
24
|
```js
|
|
25
25
|
// ES6 module syntax
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-localization",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "Simple module to localize the React interface using the same syntax used in the ReactNativeLocalization module, use 'npm run build' before publishing",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"babel-version": "babel --version",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"babel-preset-react": "^6.24.1",
|
|
36
36
|
"babel-preset-stage-2": "^6.24.1",
|
|
37
37
|
"jasmine": "^2.7.0",
|
|
38
|
-
"react": "^
|
|
38
|
+
"react": "^15.6.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"localized-strings": "^0.2.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"react": "^16.0.0 || ^15.6.0"
|
|
44
|
+
"react": "^18.0.0 || ^17.0.0 || ^16.0.0 || ^15.6.0"
|
|
45
45
|
}
|
|
46
46
|
}
|