@docusaurus/plugin-content-docs 3.9.2-canary-6495 → 3.9.2-canary-6526
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/lib/translations.js +3 -2
- package/package.json +11 -11
- package/src/translations.ts +3 -2
package/lib/translations.js
CHANGED
|
@@ -113,8 +113,9 @@ function translateSidebar({ sidebar, sidebarName, sidebarsTranslations, }) {
|
|
|
113
113
|
return undefined;
|
|
114
114
|
}
|
|
115
115
|
if (category.link.type === 'generated-index') {
|
|
116
|
-
const
|
|
117
|
-
const
|
|
116
|
+
const categoryKey = category.key ?? category.label;
|
|
117
|
+
const title = sidebarsTranslations[`sidebar.${sidebarName}.category.${categoryKey}.link.generated-index.title`]?.message ?? category.link.title;
|
|
118
|
+
const description = sidebarsTranslations[`sidebar.${sidebarName}.category.${categoryKey}.link.generated-index.description`]?.message ?? category.link.description;
|
|
118
119
|
return {
|
|
119
120
|
...category.link,
|
|
120
121
|
title,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-content-docs",
|
|
3
|
-
"version": "3.9.2-canary-
|
|
3
|
+
"version": "3.9.2-canary-6526",
|
|
4
4
|
"description": "Docs plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
},
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@docusaurus/core": "3.9.2-canary-
|
|
39
|
-
"@docusaurus/logger": "3.9.2-canary-
|
|
40
|
-
"@docusaurus/mdx-loader": "3.9.2-canary-
|
|
41
|
-
"@docusaurus/module-type-aliases": "3.9.2-canary-
|
|
42
|
-
"@docusaurus/theme-common": "3.9.2-canary-
|
|
43
|
-
"@docusaurus/types": "3.9.2-canary-
|
|
44
|
-
"@docusaurus/utils": "3.9.2-canary-
|
|
45
|
-
"@docusaurus/utils-common": "3.9.2-canary-
|
|
46
|
-
"@docusaurus/utils-validation": "3.9.2-canary-
|
|
38
|
+
"@docusaurus/core": "3.9.2-canary-6526",
|
|
39
|
+
"@docusaurus/logger": "3.9.2-canary-6526",
|
|
40
|
+
"@docusaurus/mdx-loader": "3.9.2-canary-6526",
|
|
41
|
+
"@docusaurus/module-type-aliases": "3.9.2-canary-6526",
|
|
42
|
+
"@docusaurus/theme-common": "3.9.2-canary-6526",
|
|
43
|
+
"@docusaurus/types": "3.9.2-canary-6526",
|
|
44
|
+
"@docusaurus/utils": "3.9.2-canary-6526",
|
|
45
|
+
"@docusaurus/utils-common": "3.9.2-canary-6526",
|
|
46
|
+
"@docusaurus/utils-validation": "3.9.2-canary-6526",
|
|
47
47
|
"@types/react-router-config": "^5.0.7",
|
|
48
48
|
"combine-promises": "^1.1.0",
|
|
49
49
|
"fs-extra": "^11.1.1",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": ">=20.0"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "a37ae138931cb80b31664f86a34f97671c00e409"
|
|
71
71
|
}
|
package/src/translations.ts
CHANGED
|
@@ -177,13 +177,14 @@ function translateSidebar({
|
|
|
177
177
|
return undefined;
|
|
178
178
|
}
|
|
179
179
|
if (category.link.type === 'generated-index') {
|
|
180
|
+
const categoryKey = category.key ?? category.label;
|
|
180
181
|
const title =
|
|
181
182
|
sidebarsTranslations[
|
|
182
|
-
`sidebar.${sidebarName}.category.${
|
|
183
|
+
`sidebar.${sidebarName}.category.${categoryKey}.link.generated-index.title`
|
|
183
184
|
]?.message ?? category.link.title;
|
|
184
185
|
const description =
|
|
185
186
|
sidebarsTranslations[
|
|
186
|
-
`sidebar.${sidebarName}.category.${
|
|
187
|
+
`sidebar.${sidebarName}.category.${categoryKey}.link.generated-index.description`
|
|
187
188
|
]?.message ?? category.link.description;
|
|
188
189
|
return {
|
|
189
190
|
...category.link,
|