Type-safe i18n: one API, per-locale lazy loading, ICU and MessageFormat 2.
Documentation · Showcase · Benchmarks
Parla (/ˈparla/, "PAR-lah") is Italian for "speaks", from the verb parlare, "to speak".
Status: experimental (
0.x).
- Typed loading:
thas only the namespaces you loaded. - Params from the message: plurals, selects per branch, rich text.
- Lazy per locale: one chunk per locale and namespace;
switchLocaleloads, then switches. - ICU and MF2, formatted with
Intl: no locale data to ship.
import { checkout } from './parla/namespaces/checkout.js';
const { t } = useParla([checkout]);
t.checkout.title(); // "Checkout"
t.checkout.cart.items({ count: 3 }); // "3 items"; count: number, required
t.checkout.terms({ link: (c) => <a href="/terms">{c}</a> });pnpm add -D @parlajs/compiler
pnpm parla init # config, catalogs, .gitignore; prints what is left| Package | Version | |
|---|---|---|
@parlajs/core |
Runtime: locale state, loading, Intl |
|
@parlajs/compiler |
CLI and Vite plugin: catalogs → modules |
| Package | Version | |
|---|---|---|
@parlajs/format-icu |
ICU, for the compiler's formats |
|
@parlajs/format-mf2 |
MessageFormat 2, likewise |
| Package | Version | |
|---|---|---|
@parlajs/react |
React 19: useParla, useLocale |
|
@parlajs/solid |
Solid 2, likewise | |
@parlajs/svelte |
Svelte 5, likewise | |
@parlajs/vue |
Vue 3, likewise |
| Package | Version | |
|---|---|---|
@parlajs/x18n-plugin |
x18n plugin |
pnpm install && pnpm validateParla is built with the help of AI coding tools.