Forum Discussion

braydoncbell's avatar
braydoncbell
Occasional Visitor
2 years ago

Swagger UI Localization

I'm using SwaggerUI to generate API documentation for my .NET Core application.

 

I need a way to localize the SwaggerUI for multiple languages such as en, es, fr, fi, de, zh-hans, and zh-hant. After doing some research I haven't found any resources with the solution I am searching for.

 

It would be ideal if there were a way to provide Swagger with the path to a resource resx file containing the string translations based on the current culture. The culture could then be detected by possibly adding middleware to automatically detect the user's default browser language.

No RepliesBe the first to reply