Swashbuckle.AspNetCore icon indicating copy to clipboard operation
Swashbuckle.AspNetCore copied to clipboard

Potential for localizing endpoint / metadata text

Open ronnyek opened this issue 2 years ago • 2 comments

I'm not sure if this is a feature request, or just a question. I don't mind doing more research if I've got an idea if its possible, and get an idea of what I'm searching for.

I'm just curious if swashbuckle and swagger / openapi support providing information about endpoints and the requests/responses be localized so a customer isn't stuck viewing documentation in a fixed language.

The only documentation I found that seemed like it was a possibility was this github issue, which never got any responses: #2161

ronnyek avatar Aug 25 '22 14:08 ronnyek

This issue is stale because it has been open for 60 days with no activity. It will be automatically closed in 14 days if no further updates are made.

github-actions[bot] avatar Apr 18 '24 01:04 github-actions[bot]

I don't think this would be possible without very heavy customisation using filters. You'd need to document everything just as resource keys, and then dynamically look up all the text at runtime on a per-request basis. This would then also play havoc with any caching we might do.

I don't think this is something we'd ever support out-of-the-box as to do so would probably be a huge piece of work.

martincostello avatar Apr 18 '24 05:04 martincostello

This issue is stale because it has been open for 60 days with no activity. It will be automatically closed in 14 days if no further updates are made.

github-actions[bot] avatar Jun 26 '24 01:06 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jul 14 '24 01:07 github-actions[bot]