@graphcommerce/lingui-next 8.0.6 → 8.0.8
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 +14 -12
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 8.0.8
|
|
4
|
+
|
|
5
|
+
## 8.0.7
|
|
6
|
+
|
|
3
7
|
## 8.0.6
|
|
4
8
|
|
|
5
9
|
## 8.0.5
|
|
@@ -74,8 +78,7 @@
|
|
|
74
78
|
|
|
75
79
|
### Patch Changes
|
|
76
80
|
|
|
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))
|
|
81
|
+
- [#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
82
|
|
|
80
83
|
## 8.0.0-canary.100
|
|
81
84
|
|
|
@@ -123,8 +126,7 @@
|
|
|
123
126
|
|
|
124
127
|
### Patch Changes
|
|
125
128
|
|
|
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))
|
|
129
|
+
- [#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
130
|
|
|
129
131
|
## 8.0.0-canary.78
|
|
130
132
|
|
|
@@ -851,31 +853,31 @@
|
|
|
851
853
|
All occurences of `<Trans>` and `t` need to be replaced:
|
|
852
854
|
|
|
853
855
|
```tsx
|
|
854
|
-
import { Trans, t } from
|
|
856
|
+
import { Trans, t } from '@lingui/macro'
|
|
855
857
|
|
|
856
858
|
function MyComponent() {
|
|
857
|
-
const foo =
|
|
859
|
+
const foo = 'bar'
|
|
858
860
|
return (
|
|
859
861
|
<div aria-label={t`Account ${foo}`}>
|
|
860
862
|
<Trans>My Translation {foo}</Trans>
|
|
861
863
|
</div>
|
|
862
|
-
)
|
|
864
|
+
)
|
|
863
865
|
}
|
|
864
866
|
```
|
|
865
867
|
|
|
866
868
|
Needs to be replaced with:
|
|
867
869
|
|
|
868
870
|
```tsx
|
|
869
|
-
import { Trans } from
|
|
870
|
-
import { i18n } from
|
|
871
|
+
import { Trans } from '@lingui/react'
|
|
872
|
+
import { i18n } from '@lingui/core'
|
|
871
873
|
|
|
872
874
|
function MyComponent() {
|
|
873
|
-
const foo =
|
|
875
|
+
const foo = 'bar'
|
|
874
876
|
return (
|
|
875
877
|
<div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
|
|
876
|
-
<Trans key=
|
|
878
|
+
<Trans key='My Translation {foo}' values={{ foo }}></Trans>
|
|
877
879
|
</div>
|
|
878
|
-
)
|
|
880
|
+
)
|
|
879
881
|
}
|
|
880
882
|
```
|
|
881
883
|
|
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.8",
|
|
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.8",
|
|
22
|
+
"@graphcommerce/next-config": "^8.0.8",
|
|
23
|
+
"@graphcommerce/next-ui": "^8.0.8",
|
|
24
|
+
"@graphcommerce/prettier-config-pwa": "^8.0.8",
|
|
25
|
+
"@graphcommerce/typescript-config-pwa": "^8.0.8",
|
|
26
26
|
"@lingui/core": "^4.2.1",
|
|
27
27
|
"@lingui/macro": "^4.2.1",
|
|
28
28
|
"@lingui/react": "^4.2.1",
|