Skip to main content

Built and signed on GitHub Actions

Creates a simple translation object that can use Signals to update the translation when a variable changes.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
4 months ago (0.0.0)
f
i18n

Creates a new instance of an internationalization function with the provided language's translations

T
Translate

The translate function returned by i18n

T
Translation

A map of keys and their (Signal) values in that language

T
Translations

A mapping from language to translation map

T
Variables

Variables to be replaced in the translated value which can be specified using {}, e.g.: "Hello {name}!"