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