# Translating the web into 10+ Indian languages in real time

> Developer tooling for a national language-technology mission. An SDK, npm packages and a Chrome extension that translate live webpages.

- Client: Bhashini (Government of India)
- Role: Project intern
- Period: Oct 2023 → Mar 2024
- Stack: TypeScript, JavaScript, Chrome Extensions API, DOM APIs, npm
- URL: https://premshah.in/work/realtime-web-translation-sdk

## Key numbers

- **10+**: Indian languages supported
- **50%**: faster translation & DOM rendering

## The problem

Most of the web is in English, and most Indians aren't. Bhashini provides translation models, but website owners needed an easy way to put them on their pages.

## What I built

- An **SDK and npm packages** that let any site translate its content in real time.
- A **Chrome extension** that does the same for any page a user visits.
- Optimisations to the core pipeline (batching text nodes and cutting DOM thrash) that made translation and re-rendering **about 50% faster**.

We presented this work at **GPAI 2023**.
