7. Translate Legal Text into Hindi / Marathi
Translate Bharat legal prose into Hindi (hi-IN), Marathi (mr-IN), or any of the 22 Eighth Schedule languages via B8.
Problem: Translate court summaries, client advisories, or notice explanations into regional Bharat languages while preserving legal precision.
| Step | Endpoint | Scope | Credits |
|---|---|---|---|
| List supported languages | GET /api/v1/in/translation/languages | translate:read | 0 |
Translate legal text (B8) | POST /api/v1/in/translation/text | translate:write | 2 per 2,000 chars (max 20,000 chars) |
Implementation
# 1. Inspect all 23 supported language codes (22 Eighth Schedule + en-IN)
curl -sS https://api.vidhi.shamik.app/api/v1/in/translation/languages \
-H "Authorization: Bearer $VIDHI_API_KEY"
# 2. Translate into Hindi (hi-IN) or Marathi (mr-IN)
curl -sS -X POST https://api.vidhi.shamik.app/api/v1/in/translation/text \
-H "Authorization: Bearer $VIDHI_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"text": "Written by AI — check the cited judgments before relying on it. Notice under Section 138 NI Act must be dispatched within 30 days.",
"source_language": "en-IN",
"target_language": "hi-IN"
}'Rendered Devanagari Output Preview (Noto Sans Devanagari)
परक्राम्य लिखत अधिनियम, 1881 की धारा 138 के अंतर्गत सूचना बैंक वापसी ज्ञापन प्राप्त होने के 30 दिनों के भीतर भेजी जानी आवश्यक है। AI द्वारा लिखित — भरोसा करने से पहले उद्धृत निर्णयों की जाँच करें।
परक्राम्य संलेख अधिनियम, 1881 च्या कलम 138 अन्वये नोटीस बँक मेमो मिळाल्यापासून 30 दिवसांच्या आत पाठवणे आवश्यक आहे. व्हॉट्सॲप किंवा ईमेलद्वारे पाठवलेल्या प्रतींसह मूळ न्यायनिवाडे तपासा.
Verified Response JSON
{
"translated_text": "परक्राम्य लिखत अधिनियम, 1881 की धारा 138 के अंतर्गत सूचना...",
"source_language": "en-IN",
"target_language": "hi-IN",
"char_count": 134,
"model": "sarvam-translate:v1"
}6. Screen a Commercial Contract for Bharat Statutory Traps & Stamp Duty
Pre-redact sensitive PII with B7 Compliance Firewall and detect ICA s.27/28/74, Perkins Eastman s.12(5), and Stamp Act traps with B6.
Live Bharat corpus counts, tribunal forums, statute counts, and known limits (0 credits). GET
Next Page