Skip to content

i18n #109

@jayvdb

Description

@jayvdb

(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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions