v0.4.0 is now available

Add UrduMagic to your website

Translate websites into Urdu instantly—offline, secure, and developer-friendly. The easiest way to add Urdu support to any JavaScript application.

Roman ↔ UrduEnglish → Urdu10K+ DictionaryNext.js & SSRReact HooksOffline FirstRTL ReadyTypeScriptMIT License
Works OfflineNo API KeysNo Internet RequiredXSS Protected
ENEnglish
AaRoman Urdu
عاردو
اردو لکھیں...
Powered by UrduMagicOffline
Library ready: Loading...
Roman → UrduOffline
theek haiٹھیک ہے
Roman → UrduOffline
khubsooratخوبصورت
Roman → UrduOffline
mohabbatمحبت
16 KB
Core Library
10,000+
Dictionary Entries
100%
Offline First
v0.4.0
Latest Release
Perfect For

Built for every web project

Whether you ship SaaS, government portals, or personal blogs—UrduMagic fits right in.

SaaS Dashboards
Localize admin panels instantly
Government Websites
Reach citizens in their language
AI Chatbots
Respond in Urdu natively
LMS Platforms
Deliver education in Urdu
E-commerce
Sell to Urdu-speaking markets
Blogs & CMS
Publish multilingual content
Documentation
Docs for Urdu developers
Internal Tools
Localize enterprise apps
Installation

Up and running in 30 seconds

Install the package, import one function, and you're translating.

Terminal
$ npm install urdumagic
example.tsTypeScript
import { translate } from "urdumagic";
const result = await translate("Pakistan is beautiful");
// پاکستان خوبصورت ہے
const roman = translate("mujhe Pakistan se pyar hai");
// مجھے پاکستان سے پیار ہے
Capabilities

Why choose UrduMagic?

Everything you need to make your modern web applications accessible to Urdu speakers, without heavy i18n overhead.

Next.js & React Ready

Dedicated subpath exports (`urdumagic/next`, `urdumagic/react`, `urdumagic/server`) supporting App Router, SSR, and dynamic hooks.

10K+ Offline Engine

Proprietary 10,000+ entry dictionary providing instant, zero-latency lookups for English terms and common Urdu phrases.

Missing Word Collector

Built-in runtime collector automatically tracks untranslated terms so developers can discover and extend site vocabularies.

Custom Vocabularies

Inject your own brand names, company terminology, and custom slang seamlessly with the `extendDictionary` API.

Hardened 5-Layer Security

Enterprise pipeline with XSS sanitization, HTML entity encoding, and prototype pollution protection baked into the core.

Zero-Config Magic Mode

Automatically translate full DOM trees, toggle RTL layout, and inject crisp Google Noto Nastaliq Urdu typography.

Features

Everything you need, nothing you don't

UrduMagic is a complete solution. No plugins, no extra services, no API bills.

Feature
UrduMagic
Roman Urdu → Urdu
English → Urdu
10K+ Offline Dictionary
Missing Word Collector & Tracker
Custom Vocabularies (`extendDictionary`)
RTL Support & Typography
Magic Mode (Whole-site DOM)
Offline First (Zero-latency)
TypeScript Support
React Hooks & Provider (`urdumagic/react`)
Next.js App Router & SSR (`urdumagic/next`)
MIT License
XSS Protection
No API Keys Required

Ready to make your site multilingual?

Join developers building more inclusive Urdu experiences across the web.