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