SayKit
Getting Started

Introduction

Compile-time i18n for JavaScript, TypeScript, React, and beyond

Welcome to SayKit

SayKit is a framework-agnostic internationalisation toolkit built around compile-time message extraction, typed configuration, and small runtime primitives.

You author messages inline with tagged templates or JSX. The saykit CLI extracts them to translation files and compiles each locale into a module of plain data, and a build plugin rewrites your source to small runtime calls. At runtime a view formats those messages with Intl: plurals, ordinals, select, numbers and dates, with nothing left to parse.

SayKit is in active development (pre-1.0). Public APIs may change before the stable 1.0 release.

Why SayKit?

Author in code

Write messages inline with tagged templates or JSX. No keys, no string tables, no juggling translation IDs by hand.

Compile-time extraction

The CLI extracts messages from your source and compiles them ahead of time. Your source stays small and ergonomic.

ICU MessageFormat

Full support for plurals, ordinals, and select using the ICU standard the rest of the i18n world already uses.

Framework agnostic

A small core runtime, plus adapters for React, Next.js, TanStack Start, Carbon, Expo, and anything else with a build plugin.

Typed config

A Zod-validated saykit.config.ts file defines locales, buckets, formatters, and transformers, all under TypeScript.

Plain translation files

Translators work in .po (or your own format). Your app imports the compiled .js beside it: no parser, no loader, no bundler setup.

How it works

SayKit wires up like this:

  1. You author messages with say`...` or <Say>...</Say> in source files.
  2. The saykit CLI extracts them into per-locale files (src/locales/en.po, fr.po, …).
  3. Translators (or you) fill in the translations in those files.
  4. The CLI compiles each locale into a module (src/locales/fr.js) that your app imports like any other.
  5. At build time a SayKit plugin transforms your source: macros become small say.call(...) calls.
  6. At runtime, catalogue.locale(...) returns the locale-bound View that formats messages on demand.

There's no SaaS, no proxy, no extra service. Translation files live in your repo, next to the code they describe.

Where to next?

On this page