Skip to content

Parla

Type-safe i18n: TypeScript checks the keys, the params and what has loaded.

One API, per-locale lazy loading, ICU and MessageFormat 2.

parlaitspeaksensprichtdehablaes話すjaparlefrμιλάειelfalaptговоритruspreektnlيتكلمarmówipl说zhtalarsv말한다kokonuşurtrvorbeșteroconstt=awaitparla.load([checkout]);t.checkout.cart.items({count:3});//"3items"Expected1arguments,butgot0.ts(2554)
import { home } from './parla/namespaces/home.js';
const { t } = useParla([home]);
t.home.greeting({ name: 'Ada' });
t.home.cart.items({ count: 3 }); // count: number
t.home.terms({ link: (c) => <a href="/terms">{c}</a> });
Hello, Ada!
3 items
Accept the terms, today.