File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
packages/docusaurus-plugin-openapi-docs/src/markdown Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export function myCustomApiMdGenerator({
50
50
`import OperationTabs from "@theme/OperationTabs";\n` ,
51
51
`import TabItem from "@theme/TabItem";\n` ,
52
52
`import Heading from "@theme/Heading";\n` ,
53
- `import { translate } from "@docusaurus/Translate";\n\n` ,
53
+ `import Translate from "@docusaurus/Translate";\n\n` ,
54
54
createHeading ( title ) ,
55
55
createMethodEndpoint ( method , path ) ,
56
56
createServersTable ( servers ) ,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export function createRequestHeader(header: string) {
14
14
as : "h2" ,
15
15
className : "openapi-tabs__heading" ,
16
16
children : [
17
- `{translate({ id: ' theme.openapi.request.title', message: ' ${ header } ' })} ` ,
17
+ `<Translate id=" theme.openapi.request.title"> ${ header } </Translate> ` ,
18
18
] ,
19
19
} ) ,
20
20
"\n\n" ,
Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ function createDetailsNode(
376
376
create ( "span" , {
377
377
className : "openapi-schema__required" ,
378
378
children :
379
- "{translate({ id: 'theme.openapi.schemaItem.required', message: ' required' })} " ,
379
+ "<Translate id= 'theme.openapi.schemaItem.required'> required</Translate> " ,
380
380
} ) ,
381
381
]
382
382
) ,
@@ -532,7 +532,7 @@ function createPropertyDiscriminator(
532
532
create ( "span" , {
533
533
className : "openapi-schema__required" ,
534
534
children :
535
- "{translate({ id: 'theme.openapi.schemaItem.required', message: ' required' })} " ,
535
+ "<Translate id= 'theme.openapi.schemaItem.required'> required</Translate> " ,
536
536
} ) ,
537
537
] ) ,
538
538
] ,
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export function createApiPageMD({
73
73
`import OperationTabs from "@theme/OperationTabs";\n` ,
74
74
`import TabItem from "@theme/TabItem";\n` ,
75
75
`import Heading from "@theme/Heading";\n` ,
76
- `import { translate } from "@docusaurus/Translate";\n\n` ,
76
+ `import Translate from "@docusaurus/Translate";\n\n` ,
77
77
createHeading ( title ) ,
78
78
createMethodEndpoint ( method , path ) ,
79
79
infoPath && createAuthorization ( infoPath ) ,
You can’t perform that action at this time.
0 commit comments