git404hub

what is localize fr?

sarvam-ai/localize — explained in plain English

Analysis updated 2026-05-18

6TypeScriptAudience · developerComplexity · 2/5Setup · easy

tl;dr

A command line tool that automatically translates a website's JSON locale files and markdown pages into Indian languages using Sarvam AI's translation service.

vibe map

mindmap
  root((Sarvam Localize))
    What it does
      Translates JSON locale files
      Translates markdown pages
      Preserves variables and structure
    Tech stack
      TypeScript
      Node CLI
      Sarvam AI API
    Use cases
      Localize a Next.js website
      Translate i18n JSON files
      Translate MDX content pages
    Audience
      Web developers
      i18n maintainers
    Languages
      Hindi
      Tamil
      Bengali
      Many more Indian languages

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Translate a React or Vue app's JSON locale files into multiple Indian languages automatically.

VIBE 2

Batch translate markdown or MDX documentation pages for a localized website.

VIBE 3

Keep a multilingual site's content up to date by only translating newly added text.

VIBE 4

Build a Next.js site that serves content in several Indian languages using next-intl.

what's the stack?

TypeScriptNode.jsSarvam AI API

how it stacks up fr

sarvam-ai/localizeatomicstrata/atomicmemoryazerdsq131/mcpm
Stars666
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasymoderateeasy
Complexity2/54/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · easy time til it works · 5min

Requires a free Sarvam AI API key set in a .env file before translating anything.

No license information is stated in the README.

in plain english

Sarvam Localize is a command line tool for translating a website's text into Indian languages. It is built on top of Sarvam AI's own translation service, and it is aimed at developers who need to localize a website's JSON locale files or markdown content pages without doing the translation by hand. To use it, a developer first gets a free API key from Sarvam AI's dashboard and puts it in a local environment file. From there the tool can be run directly with npx, no separate install step needed. Running an init command creates a config file that records settings like which language the source content is written in and which languages to translate it into, so future runs do not need those options typed out again. The tool handles two kinds of content differently. For JSON locale files, commonly used by internationalization libraries like React i18next or Vue i18n, it translates the text values while preserving the nested key structure and any placeholder variables inside the strings, such as a person's name being inserted into a greeting. For markdown or MDX content pages, it scans a source folder for files matching a chosen naming pattern and writes translated copies into a destination folder, organized by language. The list of supported languages is large and specific to India, covering Hindi, Bengali, Gujarati, Kannada, Malayalam, Marathi, Odia, Punjabi, Tamil, and Telugu with one underlying model, and an even longer list including Assamese, Urdu, Nepali, Sanskrit, and several other regional languages with a second, broader model. By default the tool skips any text that has already been translated, so repeated runs only fill in new or missing content, though a redo flag can force everything to be retranslated. Two working demo websites built with Next.js show the tool's output in practice.

prompts (copy fr)

prompt 1
Help me set up sarvam-localize with an API key and translate my en-IN.json file into Hindi and Tamil.
prompt 2
Show me how to configure localize.json so my markdown content gets translated into Malayalam.
prompt 3
Explain how sarvam-localize preserves variables like {{name}} when translating locale files.
prompt 4
Walk me through using the translate sync command to translate one specific locale file into another.

Frequently asked questions

what is localize fr?

A command line tool that automatically translates a website's JSON locale files and markdown pages into Indian languages using Sarvam AI's translation service.

What language is localize written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, Sarvam AI API.

What license does localize use?

No license information is stated in the README.

How hard is localize to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is localize for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.