@graphcommerce/magento-cms 9.0.0-canary.56 → 9.0.0-canary.58
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
|
+
## 9.0.0-canary.58
|
|
4
|
+
|
|
5
|
+
## 9.0.0-canary.57
|
|
6
|
+
|
|
3
7
|
## 9.0.0-canary.56
|
|
4
8
|
|
|
5
9
|
## 9.0.0-canary.55
|
|
@@ -1198,31 +1202,31 @@
|
|
|
1198
1202
|
All occurences of `<Trans>` and `t` need to be replaced:
|
|
1199
1203
|
|
|
1200
1204
|
```tsx
|
|
1201
|
-
import { Trans, t } from
|
|
1205
|
+
import { Trans, t } from '@lingui/macro'
|
|
1202
1206
|
|
|
1203
1207
|
function MyComponent() {
|
|
1204
|
-
const foo =
|
|
1208
|
+
const foo = 'bar'
|
|
1205
1209
|
return (
|
|
1206
1210
|
<div aria-label={t`Account ${foo}`}>
|
|
1207
1211
|
<Trans>My Translation {foo}</Trans>
|
|
1208
1212
|
</div>
|
|
1209
|
-
)
|
|
1213
|
+
)
|
|
1210
1214
|
}
|
|
1211
1215
|
```
|
|
1212
1216
|
|
|
1213
1217
|
Needs to be replaced with:
|
|
1214
1218
|
|
|
1215
1219
|
```tsx
|
|
1216
|
-
import { Trans } from
|
|
1217
|
-
import { i18n } from
|
|
1220
|
+
import { Trans } from '@lingui/react'
|
|
1221
|
+
import { i18n } from '@lingui/core'
|
|
1218
1222
|
|
|
1219
1223
|
function MyComponent() {
|
|
1220
|
-
const foo =
|
|
1224
|
+
const foo = 'bar'
|
|
1221
1225
|
return (
|
|
1222
1226
|
<div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
|
|
1223
|
-
<Trans key=
|
|
1227
|
+
<Trans key='My Translation {foo}' values={{ foo }}></Trans>
|
|
1224
1228
|
</div>
|
|
1225
|
-
)
|
|
1229
|
+
)
|
|
1226
1230
|
}
|
|
1227
1231
|
```
|
|
1228
1232
|
|
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": "9.0.0-canary.
|
|
5
|
+
"version": "9.0.0-canary.58",
|
|
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": "^9.0.0-canary.
|
|
16
|
-
"@graphcommerce/graphql": "^9.0.0-canary.
|
|
17
|
-
"@graphcommerce/magento-store": "^9.0.0-canary.
|
|
18
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
19
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.58",
|
|
16
|
+
"@graphcommerce/graphql": "^9.0.0-canary.58",
|
|
17
|
+
"@graphcommerce/magento-store": "^9.0.0-canary.58",
|
|
18
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.58",
|
|
19
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.58",
|
|
20
20
|
"@lingui/core": "^4.2.1",
|
|
21
21
|
"@lingui/macro": "^4.2.1",
|
|
22
22
|
"@lingui/react": "^4.2.1",
|