-
Notifications
You must be signed in to change notification settings - Fork 298
Closed
Description
(Can of worms opener ...)
All messages emitted by drf-spectacular
should be from message catalogs, and the appropriate language used based on the HTTP request headers using standard Django i18n mechanisms including fallbacks (to English usually).
e.g.
drf_spectacular/openapi.py: return {'204': {'description': 'No response body'}}
drf_spectacular/openapi.py: return {'description': 'No response body'}
drf_spectacular/openapi.py: return {'description': 'No response body'}
I guess the only way to have l10n is to embed all available languages in the mandatory description
's using html blocks
c.f. OAI/OpenAPI-Specification#274 , api-platform/api-platform#1363 , OAI/OpenAPI-Specification#1740 (comment) .
But this is Django, and Django REST Framework, and so should follow its conventions where possible ;-).
Metadata
Metadata
Assignees
Labels
No labels