@ttoss/react-i18n 1.18.9 → 1.19.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.
- package/README.md +9 -5
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
# @ttoss/i18n
|
|
1
|
+
# @ttoss/react-i18n
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**@ttoss/react-i18n** is a library that provides a way to internationalize your React application using ttoss ecosystem.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
:::note
|
|
6
|
+
You should declare your messages as describe in the [FormatJS](https://formatjs.io/docs/getting-started/message-declaration) documentation.
|
|
7
|
+
:::
|
|
6
8
|
|
|
7
9
|
## Get Started
|
|
8
10
|
|
|
9
|
-
### Install @ttoss/i18n
|
|
11
|
+
### Install @ttoss/react-i18n
|
|
10
12
|
|
|
11
13
|
```shell
|
|
12
|
-
yarn add @ttoss/react-i18n
|
|
14
|
+
yarn add @ttoss/react-i18n @ttoss/i18n-cli
|
|
13
15
|
```
|
|
14
16
|
|
|
17
|
+
To extract and compile your translations, check the [ttoss/i18n-cli](https://ttoss.dev/docs/modules/packages/i18n-cli/) documentation.
|
|
18
|
+
|
|
15
19
|
## Examples of use
|
|
16
20
|
|
|
17
21
|
### Index.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/react-i18n",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": "ttoss",
|
|
6
6
|
"contributors": [
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"typings": "dist/index.d.ts",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"react-intl": "^6.
|
|
29
|
+
"react-intl": "^6.3.1"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"react": ">=16.8.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@formatjs/cli": "^
|
|
36
|
-
"@ttoss/config": "^1.28.
|
|
37
|
-
"@ttoss/i18n-cli": "^0.
|
|
38
|
-
"@ttoss/test-utils": "^1.20.
|
|
35
|
+
"@formatjs/cli": "^6.0.4",
|
|
36
|
+
"@ttoss/config": "^1.28.4",
|
|
37
|
+
"@ttoss/i18n-cli": "^0.4.0",
|
|
38
|
+
"@ttoss/test-utils": "^1.20.6"
|
|
39
39
|
},
|
|
40
40
|
"keywords": [
|
|
41
41
|
"React",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "d15a9d05fda6518074514d664fff1409cbdad2ae"
|
|
49
49
|
}
|