# codingcommons/typesafe-i18n

A fully type-safe and lightweight internationalization library for all your TypeScript and JavaScript projects.

Repository: https://github.com/codingcommons/typesafe-i18n
Canonical: https://ross.abutalabs.com/products/typesafe-i18n
Homepage: https://github.com/ivanhofer/typesafe-i18n
Language: TypeScript
License: MIT
License Family: permissive
Topics: typescript, internationalization, localization, i18n, javascript, angular, lightweight, react, svelte, angular2, nodejs, solid, vue
Last push: 2026-03-22T20:28:52+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 73, release rhythm 70, longevity 100
- inputs: {"age_days": 2074, "days_push": 164, "days_rel": 203, "gap_med": 0, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2474, forks 91 (observed 2026-08-28T04:06:54.848958+00:00)

## What it is
typesafe-i18n is a fully type-safe, lightweight (~1kb) internationalization library for TypeScript and JavaScript projects. It generates boilerplate translation code, supports plural rules, switch-case statements, locale-dependent value formatting, async locale loading, and works in frontend, backend, and API projects.

## Use cases
- add type-safe i18n to a TypeScript app
- translate UI strings with compile-time safety
- format dates and numbers per locale
- detect the user's locale in browser or server
- handle plural and gender-specific translations
- load translation locales asynchronously
- internationalize a Node.js backend or API

## When to choose
- you want compile-time-checked translation keys and arguments
- bundle size matters and you need a tiny i18n runtime
- you use React, Vue, Svelte, Angular, Solid, or plain Node.js
- you need locale-aware formatting of dates, numbers, and plurals

## When to avoid
- you need heavy ecosystem features like ICU message format tooling or translation management platform integrations
- your project is not JavaScript/TypeScript
- you rely on a framework's built-in i18n solution instead

## Facets
- artifact type: library
- maturity: maintenance
- function: internationalization, templating, sdk
- domain: web-development, frontend, cross-platform
- platform: browser, cross-platform
- tags: i18n, type-safe, localization, plural-rules, ssr, locale-detection, lightweight, react, vue, svelte, angular, nodejs, typescript

## Member repositories
- codingcommons/typesafe-i18n (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:54.848958+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:28:24.289725+00:00, confidence not recorded.
  - readme: https://github.com/codingcommons/typesafe-i18n (fetched 2026-08-28T04:06:54.848958+00:00, sha 417fdc466961)
  - homepage: https://github.com/ivanhofer/typesafe-i18n (fetched 2026-08-29T10:10:29.477464+00:00, sha 06d55e59bd2f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
