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