# fnando/i18n-js

It's a small library to provide the I18n translations on the Javascript. It comes with Rails support.

Repository: https://github.com/fnando/i18n-js
Canonical: https://ross.abutalabs.com/products/i18n-js
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-07-14T18:42:21+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 92, release rhythm 35, longevity 100
- inputs: {"age_days": 6209, "days_push": 50, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3810, forks 506 (observed 2026-08-28T04:08:20.583191+00:00)

## What it is
A Ruby gem that exports i18n translations from YAML files to JSON for use in JavaScript applications, with a companion npm package for consuming them. It includes Rails integration and a CLI for initializing configuration and exporting locale files.

## Use cases
- export rails i18n translations to json for javascript
- share translations between ruby backend and js frontend
- generate locale json files from yaml
- filter which translation keys get exported to the frontend
- use i18n translations in a non-ruby javascript project

## When to choose
- you have a Ruby or Rails app and need translations in JavaScript
- you want configurable, pattern-based filtering of exported translation keys
- you want digest-based cache-busting filenames for locale files

## When to avoid
- your project has no Ruby tooling and you only need a JS i18n runtime
- you need runtime translation management or a translation CMS
- you need server-side rendering of translations handled entirely in Ruby

## Facets
- artifact type: library
- maturity: active
- function: internationalization, cli, serialization
- domain: web-development, frontend, developer-tools
- platform: ruby
- tags: i18n, translations, rails, json-export, ruby-gem, localization, nodejs, javascript, web-server

## Member repositories
- fnando/i18n-js (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:20.583191+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-29T18:26:37.928017+00:00, confidence not recorded.
  - readme: https://github.com/fnando/i18n-js (fetched 2026-08-28T04:08:20.583191+00:00, sha 67e10e1388aa)
- Data as of 2026-08-30T08:39:29.467469+00:00.
