<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fh="http://purl.org/syndication/history/1.0"><channel><title>Parla | Blog</title><description>Type-safe i18n: one API, per-locale lazy loading, ICU and MessageFormat 2.</description><link>https://parlajs.github.io/</link><language>en</language><fh:complete/><atom:link rel="self" href="https://parlajs.github.io/parla/blog/rss.xml"/><item><title>Introducing Parla: i18n where the types know what loaded</title><link>https://parlajs.github.io/parla/blog/2026-11-28-introducing-parla/</link><guid isPermaLink="true">https://parlajs.github.io/parla/blog/2026-11-28-introducing-parla/</guid><description>Parla, a type-safe, framework-agnostic i18n library where the types know what loaded.</description><pubDate>Sat, 28 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Most i18n bugs aren’t translation bugs: a missing key, a &lt;code dir=&quot;auto&quot;&gt;{count}&lt;/code&gt; nobody passed, a namespace read
before it loaded. TypeScript could catch each. Today’s libraries type keys, some type params too, and
most leave “is it loaded?” to a &lt;code dir=&quot;auto&quot;&gt;ready&lt;/code&gt; flag.&lt;/p&gt;
&lt;p&gt;Parla is a type-safe, framework-agnostic i18n library for TypeScript, with &lt;a href=&quot;https://parlajs.github.io/parla/adapters/react&quot;&gt;React&lt;/a&gt;,
&lt;a href=&quot;https://parlajs.github.io/parla/adapters/solid&quot;&gt;Solid&lt;/a&gt;, &lt;a href=&quot;https://parlajs.github.io/parla/adapters/svelte&quot;&gt;Svelte&lt;/a&gt; and &lt;a href=&quot;https://parlajs.github.io/parla/adapters/vue&quot;&gt;Vue&lt;/a&gt; bindings. A compiler turns
ICU or MessageFormat 2 catalogs into typed functions and lazy chunks, one per locale and namespace. The
name, pronounced /ˈparla/ (“PAR-lah”), is Italian for “speaks”, from the verb &lt;em&gt;parlare&lt;/em&gt;, “to speak”.&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt; { checkout } &lt;/span&gt;&lt;span&gt;from&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&apos;./parla/namespaces/checkout.js&apos;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; { &lt;/span&gt;&lt;span&gt;t&lt;/span&gt;&lt;span&gt; } &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;useParla&lt;/span&gt;&lt;span&gt;([checkout]);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;t.checkout.cart.&lt;/span&gt;&lt;span&gt;items&lt;/span&gt;&lt;span&gt;({ count: &lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt; }); &lt;/span&gt;&lt;span&gt;// count: number, required&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;t.checkout.&lt;/span&gt;&lt;span&gt;terms&lt;/span&gt;&lt;span&gt;({ &lt;/span&gt;&lt;span&gt;link&lt;/span&gt;&lt;span&gt;: (&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span&gt;) &lt;/span&gt;&lt;span&gt;=&gt;&lt;/span&gt;&lt;span&gt; &amp;#x3C;&lt;/span&gt;&lt;span&gt;a&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;href&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&quot;/terms&quot;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&gt;&lt;/span&gt;&lt;span&gt;{&lt;/span&gt;&lt;span&gt;c&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;&amp;#x3C;/&lt;/span&gt;&lt;/span&gt;&lt;span&gt;a&lt;/span&gt;&lt;span&gt;&gt; });&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Params come from the message&lt;/strong&gt;: a plural’s number, a select’s keys and their params, a renderer
per tag.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code dir=&quot;auto&quot;&gt;t&lt;/code&gt; is proof of loading&lt;/strong&gt;: reading a namespace you didn’t load is a type error.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Namespaces are imports&lt;/strong&gt;: the bundler ships only what you import.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;No flash on switch&lt;/strong&gt;: &lt;code dir=&quot;auto&quot;&gt;switchLocale&lt;/code&gt; loads first, then switches.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;ICU and MF2&lt;/strong&gt;, per namespace.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Missing and unused keys&lt;/strong&gt;, reported by &lt;a href=&quot;https://parlajs.github.io/parla/tooling/x18n&quot;&gt;x18n&lt;/a&gt; through a plugin.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;How it compares with other libraries: &lt;a href=&quot;https://parlajs.github.io/parla/why&quot;&gt;Why Parla&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;No idea here is new. Parla combines:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;namespaces and fallbacks, from &lt;a href=&quot;https://www.i18next.com&quot;&gt;i18next&lt;/a&gt;;&lt;/li&gt;
&lt;li&gt;ICU messages formatted through &lt;code dir=&quot;auto&quot;&gt;Intl&lt;/code&gt;, from &lt;a href=&quot;https://formatjs.github.io&quot;&gt;FormatJS&lt;/a&gt;;&lt;/li&gt;
&lt;li&gt;catalogs compiled ahead of time, from &lt;a href=&quot;https://lingui.dev&quot;&gt;Lingui&lt;/a&gt;;&lt;/li&gt;
&lt;li&gt;messages as tree-shakable functions, from &lt;a href=&quot;https://paraglidejs.com&quot;&gt;Paraglide&lt;/a&gt;;&lt;/li&gt;
&lt;li&gt;params typed from the message, from &lt;a href=&quot;https://github.com/codingcommons/typesafe-i18n&quot;&gt;typesafe-i18n&lt;/a&gt;;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://messageformat.unicode.org&quot;&gt;MessageFormat 2&lt;/a&gt;, the Unicode standard for message syntax.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Parla is experimental and not on npm yet. Once it is:&lt;/p&gt;
&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;pnpm&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;add&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;@parlajs/react&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;# or solid, svelte, vue&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;pnpm&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;add&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-D&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;@parlajs/compiler&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;Start with &lt;a href=&quot;https://parlajs.github.io/parla/getting-started&quot;&gt;Getting started&lt;/a&gt; or the
&lt;a href=&quot;https://parlajs.github.io/parla-showcase/&quot;&gt;showcase&lt;/a&gt;. Source:
&lt;a href=&quot;https://github.com/parlajs/parla&quot;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Parla is built with the help of AI coding tools.&lt;/p&gt;</content:encoded></item></channel></rss>