-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force localisation to english #207
Comments
Hmmm, that's a good point. While we wouldn't want to have a setting to do this, it does make sense to try to source the language of the spec from the spec itself. Does the openapi spec contain a property that specifies the language/locale of the spec? |
There seems to be no solution yet in the openapi spec : A possible solution could be to use the overlay OAI/Overlay-Specification#36 |
I don't think an overlay is necessarily the best approach here, it would be a trade-off with just adding a custom vendor field. Actually looking at OAI/OpenAPI-Specification#70, I saw the suggestion of potentially using the The Argument being, the navigator tells your spec which languages to select, and then your spec language header controls the actual display on our side. I totally agree having part of the spec in one language and the rest of the spec in another doesn't make sense. So I do want to say this issue will be dealt with as soon as it seems like there is a good path forward here. |
Given that the library accepts both urls and spec objects, requiring use of a response |
…fication Allow specifying the locale of the spec. fix #207
This is now supported via the |
Hello,
I have my open api explorer that works well, thank for all contributor.
My API documentation is only in english and, if I configured my browser to support the french localisation (i'm french), I have my openapi explorer mixed between french and english. I just want to have the english locale.
Is it possible to have an option to force the usage of a localisation ?
The text was updated successfully, but these errors were encountered: