Skip to content

v3.0.0: 48 languages available, still natural language all along

Choose a tag to compare

@arnaudambro arnaudambro released this 23 Aug 11:12
· 56 commits to main since this release
0878d35

i18n-keyless translates your app by writing your own words in your own language.
No keys, no t("home.hero.title"), no JSON files to keep in sync. You write
<T>Bienvenue</T> and every user reads it in their language.

v3 makes that reach further: 48 languages, user-generated content, and
server-side rendering that ships real translated HTML.

🌍 48 languages, covering every App Store localization

Every language Apple's App Store supports, including the 11 added in March 2026 —
Bangla, Gujarati, Kannada, Malayalam, Marathi, Odia, Punjabi, Slovenian, Tamil,
Telugu, Urdu.

Most codes stay bare, because a bare code already matches every region of that
language: fr covers fr-FR, fr-CA, fr-BE, fr-CH. Regions appear only where the
translation is genuinely different text — zh-Hans/zh-Hant, pt-BR, es-MX,
fr-CA, en-GB.

languages: { primary: "fr", supported: ["en", "es", "ja"] }

You're billed per language you opt into, so that list is the whole cost model.

Any of the 48 can be your primary language. v2 let you author in French or
English only.

Shipping to the App Store?

toAppStoreLocale("fr");    // "fr-FR"
toAppStoreLocale("pt");    // "pt-PT"

Your Lang maps straight onto an App Store Connect listing slot, so the same
codes drive your UI and your store metadata.

Matching a device

resolveLang("pt-BR");   // "pt-BR"
resolveLang("pt-AO");   // "pt"       — no Angolan variant, falls back
resolveLang("zh-TW");   // "zh-Hant"
resolveLang(navigator.language, { supported: ["pt", "en"], fallback: "en" });

Hand it anything BCP-47 — navigator.language, expo-localization, an
Accept-Language header — and get back a language you actually ship.

💬 Translate what your users write

Reviews, comments, chat messages. Same component:

<T originLanguage="es">Hola mundo</T>

A French reader sees "Bonjour le monde", an English reader "Hello world", and a
Spanish reader gets the original text back untouched.

The same sentence submitted by ten users costs one translation. For
high-cardinality content, keep it in memory only:

<T originLanguage={msg.lang} namespace={`chat-${roomId}`} unpersistedNamespace>
  {msg.body}
</T>

🖥️ Server-side rendering, without touching your SPA

Real translated HTML for crawlers, no flash of untranslated text:

<I18nKeylessProvider lang={lang} translations={await getServerTranslations(lang)}>
  <App />
</I18nKeylessProvider>

The language lives in per-render context, not a global, so concurrent requests in
different languages never mix. <T> reads the provider first and falls back to
the store — adding SSR changes nothing about how your existing app works.

Works with Next.js, Remix, Astro, TanStack Start. Runnable examples for all of
them in examples/.

🗂️ Namespaces

Split a large project so each screen downloads only what it renders, and no
storage quota blows up:

<T namespace="checkout">Payer</T>

Text already translated under another namespace is reused, never re-paid for.

🐛 Fixed

  • The request queue could exceed its concurrency limit. Asking twice for the
    same string while the queue was full ran the second one immediately, past the
    limit — and corrupted the counter so the limit stopped holding afterwards. The
    SDK could end up firing unbounded parallel requests.
  • clearI18nKeylessStorageAndStore() never cleared storage. It wiped the
    config first, then read the storage adapter from that config.
  • Tasks queued in the same millisecond could collide and be silently dropped.

⚠️ Upgrading from v2

Two language codes were non-standard and are gone: cn → zh-Hans and
cz → cs. The other 17 v2 codes are unchanged.

- supported: ["fr", "en", "cn", "cz"]
+ supported: ["fr", "en", "zh-Hans", "cs"]

Requires the v3 backend. If you self-host, update it before upgrading clients.


Docs: README · SSR guide ·
full changelog