i18n-js
Ruby gem that exports i18n translations to JSON files for use in JavaScript, with Rails support.
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.
Identity
- Status
- Active
- Maintainer
- Nando Vieira4
- Maintained by
- Individual
- First release
- 20103
Rendering and deploy
Releases
Adoption
Sources
- 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/fnando/i18n-js - 2026-11-16: links, Categories, Install with, Runs as, License model
github.com/fnando/i18n-js/blob/main/README.md - 2026-11-16: First release
api.github.com/repos/fnando/i18n-js/git/tags/a0e605712fc7a6dfca81528834ce718d0c287d50 - 2026-11-16: Maintainer
raw.githubusercontent.com/fnando/i18n-js/main/LICENSE.md - 2026-11-16: Runtime, Minimum runtime
raw.githubusercontent.com/fnando/i18n-js/v4.2.4/i18n-js.gemspec - 2026-11-16: License, Current major version
rubygems.org/api/v1/gems/i18n-js.json - 2026-11-16: Last release
rubygems.org/api/v1/versions/i18n-js.json - 2026-11-16: Contributors
api.github.com/repos/fnando/i18n-js/contributors?per_page=1 - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/i18n-js