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