# mashpie/i18n-node

Lightweight simple translation module for node.js / express.js with dynamic json storage. Uses common __('...') syntax in app and templates.

Repository: https://github.com/mashpie/i18n-node
Canonical: https://ross.abutalabs.com/products/i18n-node
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-03-25T20:14:36+00:00

## Health v2 (maintenance only)
Score: 68/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 74, release rhythm 42, longevity 100
- inputs: {"age_days": 5640, "days_push": 161, "days_rel": 307, "gap_med": 34, "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 3112, forks 422 (observed 2026-08-28T04:07:44.000315+00:00)

## What it is
A lightweight internationalization (i18n) library for Node.js that provides translation via the common __('...') syntax with dynamic JSON storage. It works with Express, restify, or any framework exposing app.use(), auto-detecting locales from Accept-Language headers and adding new strings on the fly.

## Use cases
- translate a node.js web app into multiple languages
- add i18n to an express application
- detect user language from accept-language header
- store translations in json files for node.js
- translate strings in templates with __() syntax
- manage locale files compatible with webtranslateit

## When to choose
- you need a minimal, dependency-light i18n solution for Node.js or Express
- you want translations stored as simple JSON files with no extra parsing step
- you want new translation strings auto-added when first used
- you need both singleton and instance-based configuration

## When to avoid
- you need advanced i18n features like pluralization rules for complex locales, ICU message format, or context-aware translations
- you are building a frontend-only app without a Node.js backend
- you prefer a full-featured framework like i18next with ecosystem plugins

## Facets
- artifact type: library
- maturity: active
- function: internationalization, middleware, templating
- domain: web-development, backend
- platform: -
- tags: i18n, translation, express, json-translation-files, accept-language-negotiation, localization, nodejs, web-server

## Member repositories
- mashpie/i18n-node (main) score 68

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:44.000315+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-30T07:26:42.241447+00:00, confidence not recorded.
  - readme: https://github.com/mashpie/i18n-node (fetched 2026-08-28T04:07:44.000315+00:00, sha e80a379badcd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
