@graphcommerce/lingui-next 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 +12 -12
- 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
|
|
@@ -74,8 +76,7 @@
|
|
|
74
76
|
|
|
75
77
|
### Patch Changes
|
|
76
78
|
|
|
77
|
-
- [#2137](https://github.com/graphcommerce-org/graphcommerce/pull/2137) [`df507b1`](https://github.com/graphcommerce-org/graphcommerce/commit/df507b194c67eef7b02df858c07938bb308b5397) - Don't render pseudo-locale in HTML lang attribute
|
|
78
|
-
([@hnsr](https://github.com/hnsr))
|
|
79
|
+
- [#2137](https://github.com/graphcommerce-org/graphcommerce/pull/2137) [`df507b1`](https://github.com/graphcommerce-org/graphcommerce/commit/df507b194c67eef7b02df858c07938bb308b5397) - Don't render pseudo-locale in HTML lang attribute ([@hnsr](https://github.com/hnsr))
|
|
79
80
|
|
|
80
81
|
## 8.0.0-canary.100
|
|
81
82
|
|
|
@@ -123,8 +124,7 @@
|
|
|
123
124
|
|
|
124
125
|
### Patch Changes
|
|
125
126
|
|
|
126
|
-
- [#2137](https://github.com/graphcommerce-org/graphcommerce/pull/2137) [`df507b1`](https://github.com/graphcommerce-org/graphcommerce/commit/df507b194c67eef7b02df858c07938bb308b5397) - Don't render pseudo-locale in HTML lang attribute
|
|
127
|
-
([@hnsr](https://github.com/hnsr))
|
|
127
|
+
- [#2137](https://github.com/graphcommerce-org/graphcommerce/pull/2137) [`df507b1`](https://github.com/graphcommerce-org/graphcommerce/commit/df507b194c67eef7b02df858c07938bb308b5397) - Don't render pseudo-locale in HTML lang attribute ([@hnsr](https://github.com/hnsr))
|
|
128
128
|
|
|
129
129
|
## 8.0.0-canary.78
|
|
130
130
|
|
|
@@ -851,31 +851,31 @@
|
|
|
851
851
|
All occurences of `<Trans>` and `t` need to be replaced:
|
|
852
852
|
|
|
853
853
|
```tsx
|
|
854
|
-
import { Trans, t } from
|
|
854
|
+
import { Trans, t } from '@lingui/macro'
|
|
855
855
|
|
|
856
856
|
function MyComponent() {
|
|
857
|
-
const foo =
|
|
857
|
+
const foo = 'bar'
|
|
858
858
|
return (
|
|
859
859
|
<div aria-label={t`Account ${foo}`}>
|
|
860
860
|
<Trans>My Translation {foo}</Trans>
|
|
861
861
|
</div>
|
|
862
|
-
)
|
|
862
|
+
)
|
|
863
863
|
}
|
|
864
864
|
```
|
|
865
865
|
|
|
866
866
|
Needs to be replaced with:
|
|
867
867
|
|
|
868
868
|
```tsx
|
|
869
|
-
import { Trans } from
|
|
870
|
-
import { i18n } from
|
|
869
|
+
import { Trans } from '@lingui/react'
|
|
870
|
+
import { i18n } from '@lingui/core'
|
|
871
871
|
|
|
872
872
|
function MyComponent() {
|
|
873
|
-
const foo =
|
|
873
|
+
const foo = 'bar'
|
|
874
874
|
return (
|
|
875
875
|
<div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
|
|
876
|
-
<Trans key=
|
|
876
|
+
<Trans key='My Translation {foo}' values={{ foo }}></Trans>
|
|
877
877
|
</div>
|
|
878
|
-
)
|
|
878
|
+
)
|
|
879
879
|
}
|
|
880
880
|
```
|
|
881
881
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/lingui-next",
|
|
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
|
"scripts": {
|
|
8
8
|
"dev": "tsc -W"
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"@lingui/conf": "4.7.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@graphcommerce/eslint-config-pwa": "^8.0.
|
|
22
|
-
"@graphcommerce/next-config": "^8.0.
|
|
23
|
-
"@graphcommerce/next-ui": "^8.0.
|
|
24
|
-
"@graphcommerce/prettier-config-pwa": "^8.0.
|
|
25
|
-
"@graphcommerce/typescript-config-pwa": "^8.0.
|
|
21
|
+
"@graphcommerce/eslint-config-pwa": "^8.0.7",
|
|
22
|
+
"@graphcommerce/next-config": "^8.0.7",
|
|
23
|
+
"@graphcommerce/next-ui": "^8.0.7",
|
|
24
|
+
"@graphcommerce/prettier-config-pwa": "^8.0.7",
|
|
25
|
+
"@graphcommerce/typescript-config-pwa": "^8.0.7",
|
|
26
26
|
"@lingui/core": "^4.2.1",
|
|
27
27
|
"@lingui/macro": "^4.2.1",
|
|
28
28
|
"@lingui/react": "^4.2.1",
|