@graphcommerce/magento-cms 8.0.6-canary.4 → 8.0.7
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/CHANGELOG.md +10 -16
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 8.0.
|
|
3
|
+
## 8.0.7
|
|
4
4
|
|
|
5
|
-
## 8.0.6
|
|
6
|
-
|
|
7
|
-
## 8.0.6-canary.2
|
|
8
|
-
|
|
9
|
-
## 8.0.6-canary.1
|
|
10
|
-
|
|
11
|
-
## 8.0.6-canary.0
|
|
5
|
+
## 8.0.6
|
|
12
6
|
|
|
13
7
|
## 8.0.5
|
|
14
8
|
|
|
@@ -1094,31 +1088,31 @@
|
|
|
1094
1088
|
All occurences of `<Trans>` and `t` need to be replaced:
|
|
1095
1089
|
|
|
1096
1090
|
```tsx
|
|
1097
|
-
import { Trans, t } from
|
|
1091
|
+
import { Trans, t } from '@lingui/macro'
|
|
1098
1092
|
|
|
1099
1093
|
function MyComponent() {
|
|
1100
|
-
const foo =
|
|
1094
|
+
const foo = 'bar'
|
|
1101
1095
|
return (
|
|
1102
1096
|
<div aria-label={t`Account ${foo}`}>
|
|
1103
1097
|
<Trans>My Translation {foo}</Trans>
|
|
1104
1098
|
</div>
|
|
1105
|
-
)
|
|
1099
|
+
)
|
|
1106
1100
|
}
|
|
1107
1101
|
```
|
|
1108
1102
|
|
|
1109
1103
|
Needs to be replaced with:
|
|
1110
1104
|
|
|
1111
1105
|
```tsx
|
|
1112
|
-
import { Trans } from
|
|
1113
|
-
import { i18n } from
|
|
1106
|
+
import { Trans } from '@lingui/react'
|
|
1107
|
+
import { i18n } from '@lingui/core'
|
|
1114
1108
|
|
|
1115
1109
|
function MyComponent() {
|
|
1116
|
-
const foo =
|
|
1110
|
+
const foo = 'bar'
|
|
1117
1111
|
return (
|
|
1118
1112
|
<div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
|
|
1119
|
-
<Trans key=
|
|
1113
|
+
<Trans key='My Translation {foo}' values={{ foo }}></Trans>
|
|
1120
1114
|
</div>
|
|
1121
|
-
)
|
|
1115
|
+
)
|
|
1122
1116
|
}
|
|
1123
1117
|
```
|
|
1124
1118
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-cms",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "8.0.
|
|
5
|
+
"version": "8.0.7",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^8.0.
|
|
16
|
-
"@graphcommerce/graphql": "^8.0.
|
|
17
|
-
"@graphcommerce/magento-store": "^8.0.
|
|
18
|
-
"@graphcommerce/prettier-config-pwa": "^8.0.
|
|
19
|
-
"@graphcommerce/typescript-config-pwa": "^8.0.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^8.0.7",
|
|
16
|
+
"@graphcommerce/graphql": "^8.0.7",
|
|
17
|
+
"@graphcommerce/magento-store": "^8.0.7",
|
|
18
|
+
"@graphcommerce/prettier-config-pwa": "^8.0.7",
|
|
19
|
+
"@graphcommerce/typescript-config-pwa": "^8.0.7",
|
|
20
20
|
"@lingui/core": "^4.2.1",
|
|
21
21
|
"@lingui/macro": "^4.2.1",
|
|
22
22
|
"@lingui/react": "^4.2.1",
|