verbaly

v0.88.0
io.github.verbaly-i18n/verbaly Checked 10 hours ago Published 2 days ago

i18n for coding agents: extract, check and translate an app's text, with drafts a person approves

Write your text in the code. Ship it in every language. An i18n compiler and a tiny runtime for React, Vue, Svelte, Next.js, Nuxt, SvelteKit, Astro and plain HTML. No key files to keep in sync, params typed from the text, and a CI gate that stops broken translations. Most i18n tools ask you to invent a key for every sentence, write it in a file per language and keep the files in step with the code by hand. Verbaly turns that around:

Summary extracted from the README.

The idea

Most i18n tools ask you to invent a key for every sentence, write it in a file per language and keep the files in step with the code by hand. Verbaly turns that around:

// with key files: name it, write it in en.json, es.json, pt.json, keep them in sync
t('dashboard.welcome_back', { name });

// with Verbaly: write the sentence where it is used
t`Welcome back, ${name}`;

// and the compiler writes a stable key and a typed call for you
t('ESsQIvlA', { name });

The runtime that ships is 3.39 KB gzip with zero dependencies, measured on every release by a gate in this repo (pnpm --filter verbaly size).

Quick start

pnpm add verbaly @verbaly/vite
pnpm add -D @verbaly/compiler   # the verbaly command: init, extract, check
npx verbaly init
// vite.config.ts
import verbaly from '@verbaly/vite';

export default { plugins: [verbaly()] };
// anywhere in your app: extracted and typed on save
import { t, setLocale } from 'verbaly/app';

t`Hello ${name}`;
await setLocale('es'); // loads only the Spanish module

verbaly/app is your project's own module: the plugin writes it from your config, with your languages and catalogs already in it. Next.js, Nuxt, SvelteKit and Astro have their own one-line setup: pick yours in the row above, or read the full docs at https://verbaly.dev/docs.

Why Verbaly

Review translations in a panel

npx verbaly-studio

Studio serves your project over localhost: what is missing, what is broken, what a machine wrote and where each text lives in your code. Your JSON files are the database and git is the history, a save runs the same validations as verbaly check, and it never edits your source text.

How it compares

Verbaly i18next Lingui Paraglide
Type-safe keys & params ✅ Inferred from your text Built in, from a declaration file Text in code, no keys to mistype A typed function per message
Runtime size (gzip) ✅ 3.39 KB, zero deps (6.22 with DOM + urls) 15.5 KB (22.1 with React) 2.3 KB (4.4 with React) compiled, no shared runtime
Key maintenance ✅ None, auto-extracted Written by hand, synced by its CLI Extract → compile step By hand
Dynamic / CMS content ✅ Real runtime path Yes Yes Best with keys known at build time
Plain HTML (no framework) ✅ DOM interpreter With a jQuery plugin ❌ ❌
Missing translations ✅ Fails CI, every build lists it A CLI command, for CI CI step inlang check, in CI
Broken translations ✅ Fails CI, every build lists it CLI lint, a warning by default Syntax errors only inlang check, in CI
Catalog format ✅ Plain JSON JSON PO, JSON or CSV inlang format, others by plugin
Coding agents ✅ MCP server + skill Skill, hosted MCP (Locize) Skills + plugin ❌
Maturity & ecosystem Pre-1.0: the API can still change Proven at scale, modules for everything Stable, standard PO for translators Stable, with the inlang tools

Every cell about another tool is the best true thing its own documentation says, read on 2026-11-15 (i18next 27.1.2, Lingui 6.12.0, Paraglide 3.2.2). Sizes are min+gzip of what an app imports, with React external, measured the same day with the same method. The same table is on verbaly.dev.

Coding agents

claude mcp add verbaly -- npx -y @verbaly/mcp

In Claude Code, one plugin brings the server and the skill together:

claude plugin marketplace add verbaly-i18n/verbaly
claude plugin install verbaly@verbaly

Gemini CLI takes the same pair as an extension: gemini extensions install https://github.com/verbaly-i18n/verbaly.

The MCP server gives your agent the whole cycle as tools, with structured output and resources to read your config and catalogs. Machine translations stay drafts until a person approves them (verbaly review --approve, or Studio): approving is deliberately not a tool. The Agent Skill teaches the write, extract, check and translate cycle (npx skills add verbaly-i18n/verbaly, which copies it into the folder of each agent you use), and the docs publish llms.txt.

Packages

Package What it is
verbaly The runtime: t, Intl formats, locale helpers and the DOM interpreter
@verbaly/compiler Extraction, typed codegen, the gate and the verbaly command
@verbaly/vite · @verbaly/unplugin Bundler plugins: Vite, and webpack, Rollup, esbuild and Rspack
@verbaly/react · @verbaly/vue · @verbaly/svelte Framework adapters: hooks or composables plus <Trans>
@verbaly/next · @verbaly/nuxt · @verbaly/sveltekit Server rendering: the language per request, hydration with no flash
@verbaly/astro Astro integration: .astro extraction and a static build per language
@verbaly/mcp MCP server: the translation cycle as tools for an agent
@verbaly/studio The local review panel above

All of them share one version number, and every release is published from CI with npm provenance.

Generated keys are hashes, so t('a1B2c3D4') in a diff tells you nothing. The i18n-ally extension shows the real text inline once you point it at your catalogs. Two files, no Verbaly config changes:

.vscode/settings.json

{
  "i18n-ally.localesPaths": ["locales"],
  "i18n-ally.keystyle": "flat",
  "i18n-ally.sourceLanguage": "en",
  "i18n-ally.displayLanguage": "en"
}

.vscode/i18n-ally-custom-framework.yml

languageIds:
  - javascript
  - typescript
  - javascriptreact
  - typescriptreact
  - vue
  - svelte
  - astro
usageMatchRegex:
  - "[^\\w\\d]t\\(\\s*['\"`]({key})['\"`]"
monopoly: true

keystyle has to match your catalogs: flat for dotted keys, nested for groups. Use the extension for reading, not writing: its extract and rename actions assume you own the keys, and here the compiler does.

Development

pnpm install
pnpm build      # tsdown: ESM + CJS + .d.ts
pnpm test       # each package's suite
pnpm typecheck
pnpm --filter verbaly bench   # the hot path against i18next

Verbaly is 0.x: the API can still change between minor versions, and every change is in the changelog. Contributions are welcome: see CONTRIBUTING.md.

Feedback

  • Something broke or surprised you: open a bug. A minimal snippet is enough.
  • Something felt like friction: tell us what. The roadmap follows real use.
  • It just works: a star or a mention helps others find it.

Verbaly is MIT-licensed, dependency-free and built independently. If it saves you time, sponsoring it funds the road to 1.0: more integrations, faster releases and long-term maintenance.

License

MIT © Aron Soto · @AronSoto