# i18n-js

Ruby gem that exports i18n translations to JSON files for use in JavaScript, with Rails support.


Source: https://findsoftware.frbit.cloud/i18n-js/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- repository: https://github.com/fnando/i18n-js
- docs: https://github.com/fnando/i18n-js/blob/main/README.md

### Identity

- status: active
- maintainer: Nando Vieira
- maintainerType: individual
- parent: unknown
- firstRelease: 2010
- hqCountry: unknown

### Kind

- category: library
- hosting: unknown
- language: ruby
- runtime: ruby
- runtimeMin: ruby 3.2
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: local
- renderingModes: not applicable
- installMethod: Gemfile (Bundler), gem install

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 4
- latestReleaseDate: 2025-10-31

### Adoption

- githubStargazers: 3808
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 10
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 2328
- dependentPackages: 31

### Sources

- urls: https://api.github.com/repos/fnando/i18n-js (read 2026-11-16)
- urls: https://github.com/fnando/i18n-js/blob/main/README.md (read 2026-11-16)
- firstRelease: https://api.github.com/repos/fnando/i18n-js/git/tags/a0e605712fc7a6dfca81528834ce718d0c287d50 (read 2026-11-16)
- maintainer: https://raw.githubusercontent.com/fnando/i18n-js/main/LICENSE.md (read 2026-11-16)
- category: https://github.com/fnando/i18n-js/blob/main/README.md (read 2026-11-16)
- language: https://api.github.com/repos/fnando/i18n-js (read 2026-11-16)
- runtime: https://raw.githubusercontent.com/fnando/i18n-js/v4.2.4/i18n-js.gemspec (read 2026-11-16)
- runtimeMin: https://raw.githubusercontent.com/fnando/i18n-js/v4.2.4/i18n-js.gemspec (read 2026-11-16)
- installMethod: https://github.com/fnando/i18n-js/blob/main/README.md (read 2026-11-16)
- installMethod: https://github.com/fnando/i18n-js/blob/main/README.md (read 2026-11-16)
- runsAs: https://github.com/fnando/i18n-js/blob/main/README.md (read 2026-11-16)
- license: https://rubygems.org/api/v1/gems/i18n-js.json (read 2026-11-16)
- licenseModel: https://github.com/fnando/i18n-js/blob/main/README.md (read 2026-11-16)
- currentMajor: https://rubygems.org/api/v1/gems/i18n-js.json (read 2026-11-16)
- latestReleaseDate: https://rubygems.org/api/v1/versions/i18n-js.json (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/fnando/i18n-js (read 2026-11-16)
- contributors: https://api.github.com/repos/fnando/i18n-js/contributors?per_page=1 (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/i18n-js (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/i18n-js (read 2026-11-16)

## Notes

i18n-js exports the translations of a Ruby i18n setup to JSON files, so JavaScript can read the same messages. A YAML configuration lists the output files and the key patterns to include or exclude, and the output path can carry the locale and an MD5 digest of the file. The gem's plugins can fill missing keys from the default locale and export other file formats through ERB templates, and a lint command lists keys that are missing from a locale.

## Worth knowing

The script linter needs a Node.js runtime on the machine that runs it. The README also describes watchers (watchman, guard and listen) that rerun the export when locale files change, and a companion npm package for JavaScript-only use.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
