Skip to content

feat: Develop a Real-Time Translation Service for Court Orders (English to Indic Languages) (#1603) - #1647

Open
knoxiboy wants to merge 1 commit into
viru0909-dev:mainfrom
knoxiboy:1603-feat-court-order-translation-service
Open

feat: Develop a Real-Time Translation Service for Court Orders (English to Indic Languages) (#1603)#1647
knoxiboy wants to merge 1 commit into
viru0909-dev:mainfrom
knoxiboy:1603-feat-court-order-translation-service

Conversation

@knoxiboy

Copy link
Copy Markdown
Contributor

Pull Request

Description

Implements a real-time translation service for court orders from English to target Indic languages (such as Hindi, Tamil, Telugu, Bengali, Marathi, and Gujarati). This service preserves key statutory terms and legal citations during processing and provides API endpoints for real-time legal document translation.

Changes:

  • nlp-orchestrator/services/translation_service.py: Created CourtOrderTranslator service supporting multi-target Indic translation, legal term dictionary protection, and text chunking.
  • nlp-orchestrator/routers/translation_router.py: Created FastAPI endpoint /api/v1/translate/court-order for handling court order translation requests.
  • nlp-orchestrator/tests/test_translation_service.py: Added pytest suite validating translation logic, legal term preservation, supported language queries, and API response structures.

Closes #1603

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Copilot AI review requested due to automatic review settings July 21, 2026 07:48
@knoxiboy
knoxiboy requested a review from viru0909-dev as a code owner July 21, 2026 07:48
@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

@knoxiboy is attempting to deploy a commit to the CodeBlooded's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

Hi @knoxiboy, thanks for contributing to Nyay Setu! 🎉

I have automatically:

  • 👤 Assigned this PR to you.
  • 🏷️ Applied the gssoc:approved label.

Our workflows will now analyze your changes to classify:

  • 📈 PR Difficulty: level:*
  • 🧩 PR Type: type:*
  • 🌟 PR Quality: quality:*

Tip

Ensure your PR description references the issue it resolves (e.g. Closes #123). This allows the bot to inherit any additional labels from that issue!

Happy coding! 🚀

@knoxiboy

Copy link
Copy Markdown
Contributor Author

Hi @viru0909-dev 👋

I have resolved all merge conflicts with the latest main branch, completed a detailed code quality & security audit, verified requirement alignment, and confirmed all unit tests pass cleanly.

This PR is completely up-to-date and mergeable. Please review and merge when convenient. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Develop a Real-Time Translation Service for Court Orders (English to Indic Languages)

2 participants