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)
type alias Variables

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

Definition

Add Package

deno add jsr:@signal/i18n

Import symbol

import { type Variables } from "@signal/i18n";

---- OR ----

Import directly with a jsr specifier

import { type Variables } from "jsr:@signal/i18n";

Add Package

npx jsr add @signal/i18n

Import symbol

import { type Variables } from "@signal/i18n";

Add Package

yarn dlx jsr add @signal/i18n

Import symbol

import { type Variables } from "@signal/i18n";

Add Package

pnpm dlx jsr add @signal/i18n

Import symbol

import { type Variables } from "@signal/i18n";

Add Package

bunx jsr add @signal/i18n

Import symbol

import { type Variables } from "@signal/i18n";