Skip to content

Comments

Adding Translations for API Documentation Content#400

Merged
sachin-panayil merged 8 commits intomainfrom
sachin/adding-api-translations
Feb 20, 2026
Merged

Adding Translations for API Documentation Content#400
sachin-panayil merged 8 commits intomainfrom
sachin/adding-api-translations

Conversation

@sachin-panayil
Copy link
Collaborator

@sachin-panayil sachin-panayil commented Feb 12, 2026

Warning

This PR should be merged after #399

Adding Translations for API Documentation Content

Problem

Not ticketed but thought it would be a good time to introduce this solution. We currently do not support multiple languages for our API documentation and drf-spectacular does not natively handle this.

Solution

Using Django's native translation library, translate content into different language that is read/displayed at runtime

Result

Swagger and ReDoc now supports multiple languages

Some important notes regarding the summary line:

  • We currently only support English but this PR adds the functionality to handle more languages down the line
  • Added a README that explains the process in depth

Test Plan

  • run make up
  • run make test

@sachin-panayil sachin-panayil marked this pull request as ready for review February 18, 2026 17:26
Base automatically changed from sachin/ndh-840-centralzing-api-docs to main February 20, 2026 15:11
@sachin-panayil sachin-panayil merged commit 16156cf into main Feb 20, 2026
12 checks passed
@sachin-panayil sachin-panayil deleted the sachin/adding-api-translations branch February 20, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants