@digigov/nextjs 0.5.3 → 0.5.4
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/App.js +4 -2
- package/CHANGELOG.md +8 -1
- package/es/App.js +4 -2
- package/esm/App.js +4 -2
- package/esm/index.js +1 -1
- package/libs/ui/src/locales/el.d.ts +4 -0
- package/package.json +2 -2
package/App.js
CHANGED
|
@@ -85,10 +85,12 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
|
|
|
85
85
|
Component = _this$props.Component,
|
|
86
86
|
pageProps = _this$props.pageProps,
|
|
87
87
|
theme = _this$props.theme,
|
|
88
|
-
|
|
88
|
+
_t = _this$props.t,
|
|
89
89
|
i18n = _this$props.i18n;
|
|
90
90
|
return /*#__PURE__*/_react["default"].createElement(_i18n.I18NProvider, {
|
|
91
|
-
t: t
|
|
91
|
+
t: function t(str) {
|
|
92
|
+
return typeof str === 'string' ? _t(str) : str;
|
|
93
|
+
},
|
|
92
94
|
i18n: i18n
|
|
93
95
|
}, /*#__PURE__*/_react["default"].createElement(_Link.LinkProvider, {
|
|
94
96
|
component: _Link2["default"]
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Change Log - @digigov/nextjs
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 08 Jun 2022 13:32:34 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.5.4
|
|
6
|
+
Wed, 08 Jun 2022 13:32:34 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- Fix i18NProvider string interpolation support
|
|
4
11
|
|
|
5
12
|
## 0.5.3
|
|
6
13
|
Tue, 17 May 2022 11:04:22 GMT
|
package/es/App.js
CHANGED
|
@@ -56,10 +56,12 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
|
|
|
56
56
|
Component = _this$props.Component,
|
|
57
57
|
pageProps = _this$props.pageProps,
|
|
58
58
|
theme = _this$props.theme,
|
|
59
|
-
|
|
59
|
+
_t = _this$props.t,
|
|
60
60
|
i18n = _this$props.i18n;
|
|
61
61
|
return /*#__PURE__*/React.createElement(I18NProvider, {
|
|
62
|
-
t: t
|
|
62
|
+
t: function t(str) {
|
|
63
|
+
return typeof str === 'string' ? _t(str) : str;
|
|
64
|
+
},
|
|
63
65
|
i18n: i18n
|
|
64
66
|
}, /*#__PURE__*/React.createElement(LinkProvider, {
|
|
65
67
|
component: NextLink
|
package/esm/App.js
CHANGED
|
@@ -56,10 +56,12 @@ var DigiGOVNextApp = /*#__PURE__*/function (_App) {
|
|
|
56
56
|
Component = _this$props.Component,
|
|
57
57
|
pageProps = _this$props.pageProps,
|
|
58
58
|
theme = _this$props.theme,
|
|
59
|
-
|
|
59
|
+
_t = _this$props.t,
|
|
60
60
|
i18n = _this$props.i18n;
|
|
61
61
|
return /*#__PURE__*/React.createElement(I18NProvider, {
|
|
62
|
-
t: t
|
|
62
|
+
t: function t(str) {
|
|
63
|
+
return typeof str === 'string' ? _t(str) : str;
|
|
64
|
+
},
|
|
63
65
|
i18n: i18n
|
|
64
66
|
}, /*#__PURE__*/React.createElement(LinkProvider, {
|
|
65
67
|
component: NextLink
|
package/esm/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/nextjs",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "next specific utilities for @digigov apps",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"main": "dist/index.js"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@digigov/ui": "0.
|
|
13
|
+
"@digigov/ui": "0.21.0",
|
|
14
14
|
"@material-ui/core": "4.11.3",
|
|
15
15
|
"@material-ui/icons": "4.11.2",
|
|
16
16
|
"clsx": "1.1.1",
|