@graphcommerce/docs 7.1.0-canary.65 → 7.1.0-canary.67
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 +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 7.1.0-canary.67
|
|
4
|
+
|
|
5
|
+
## 7.1.0-canary.66
|
|
6
|
+
|
|
3
7
|
## 7.1.0-canary.65
|
|
4
8
|
|
|
5
9
|
## 7.1.0-canary.64
|
|
@@ -941,31 +945,31 @@
|
|
|
941
945
|
All occurences of `<Trans>` and `t` need to be replaced:
|
|
942
946
|
|
|
943
947
|
```tsx
|
|
944
|
-
import { Trans, t } from
|
|
948
|
+
import { Trans, t } from "@lingui/macro";
|
|
945
949
|
|
|
946
950
|
function MyComponent() {
|
|
947
|
-
const foo =
|
|
951
|
+
const foo = "bar";
|
|
948
952
|
return (
|
|
949
953
|
<div aria-label={t`Account ${foo}`}>
|
|
950
954
|
<Trans>My Translation {foo}</Trans>
|
|
951
955
|
</div>
|
|
952
|
-
)
|
|
956
|
+
);
|
|
953
957
|
}
|
|
954
958
|
```
|
|
955
959
|
|
|
956
960
|
Needs to be replaced with:
|
|
957
961
|
|
|
958
962
|
```tsx
|
|
959
|
-
import { Trans } from
|
|
960
|
-
import { i18n } from
|
|
963
|
+
import { Trans } from "@lingui/react";
|
|
964
|
+
import { i18n } from "@lingui/core";
|
|
961
965
|
|
|
962
966
|
function MyComponent() {
|
|
963
|
-
const foo =
|
|
967
|
+
const foo = "bar";
|
|
964
968
|
return (
|
|
965
969
|
<div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
|
|
966
|
-
<Trans key=
|
|
970
|
+
<Trans key="My Translation {foo}" values={{ foo }}></Trans>
|
|
967
971
|
</div>
|
|
968
|
-
)
|
|
972
|
+
);
|
|
969
973
|
}
|
|
970
974
|
```
|
|
971
975
|
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"name": "@graphcommerce/docs",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/docs",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce/docs",
|
|
5
|
-
"version": "7.1.0-canary.
|
|
5
|
+
"version": "7.1.0-canary.67",
|
|
6
6
|
"sideEffects": true,
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@graphcommerce/prettier-config-pwa": "^7.1.0-canary.
|
|
8
|
+
"@graphcommerce/prettier-config-pwa": "^7.1.0-canary.67"
|
|
9
9
|
},
|
|
10
10
|
"prettier": "@graphcommerce/prettier-config-pwa"
|
|
11
11
|
}
|