@rspress/shared 1.16.1 → 1.17.0
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/dist/index.d.ts +5 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
@@ -140,6 +140,11 @@ interface Config$1 {
|
|
140
140
|
* @default false
|
141
141
|
*/
|
142
142
|
enableScrollToTop?: boolean;
|
143
|
+
/**
|
144
|
+
* Whether to redirect to the closest locale when the user visits the site
|
145
|
+
* @default 'auto'
|
146
|
+
*/
|
147
|
+
localeRedirect?: 'auto' | 'never';
|
143
148
|
}
|
144
149
|
/**
|
145
150
|
* locale config
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspress/shared",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.17.0",
|
4
4
|
"types": "./dist/index.d.ts",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"module": "./dist/index.mjs",
|
@@ -53,7 +53,7 @@
|
|
53
53
|
"lodash-es": "^4.17.21",
|
54
54
|
"@types/interpret": "^1.1.1",
|
55
55
|
"@types/jest": "~29.2.4",
|
56
|
-
"@types/lodash": "^4.
|
56
|
+
"@types/lodash": "^4.17.0",
|
57
57
|
"@types/lodash-es": "^4.17.8",
|
58
58
|
"@types/node": "~16.11.7",
|
59
59
|
"@types/react": "~18.0.26",
|