How to export openapi in multilingual #2738
Unanswered
salartalaA
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
Ideally you have an OpenAPI schema for each language, and you run generation at different directory for each of them. Such as English schema at /en directory, and using the dir i18n routing parser. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to export in all languages instead of just exporting in persian language
Would someone please help me in this case?
import { generateFiles } from "fumadocs-openapi";
import { openapi } from "@/lib/openapi";
void generateFiles({
input: openapi,
output: "./content/docs/fa/developer-guides",
// we recommend to enable it
// make sure your endpoint description doesn't break MDX syntax.
includeDescription: true,
addGeneratedComment: false,
});
Beta Was this translation helpful? Give feedback.
All reactions