Rails
Integrate i1n with Ruby on Rails using YAML locale files.
Setup
Run i1n init in your Rails project. The CLI detects the rails gem in your Gemfile and configures YAML format in config/locales/.
Rails uses its native i18n gem — there is no i1n SDK for Ruby. The CLI manages your YAML locale files directly.
Usage
Use the t() helper in views and controllers to access translations. i1n reads and writes standard Rails YAML locale files (e.g., en.yml, es.yml).
Nested key structures, interpolation (%{variable}), and pluralization rules are fully supported and properly protected during AI translation.
Workflow
Add keys to config/locales/en.yml, push with i1n push, translate, and pull. Translated YAML files are written to the config/locales/ directory.
Bridge Mode is not applicable to Rails — the platform uses its own native i18n gem. Works with Rails 6+ and is compatible with the standard file structure.
en:
home:
title: Welcome
subtitle: Get started with i1n