Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Rails I18nNew to Visual Studio Code? Get it now.
Rails I18n

Rails I18n

aki77

|
10,265 installs
| (0) | Free
Completion, Hover and QuickFix provider for Rails I18n.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Rails I18n

CI

VS Code extension for Rails I18n with intelligent code completion, hover information, inline annotations, and navigation features.

Features

Code Completion

Intelligent auto-completion for both translate and localize methods:

translate

localize

Hover Information

Multi-language translation preview on hover. Shows translations for all configured languages in priority order:

hover

Inline Annotations

Translation text displayed inline with I18n keys for better code readability:

annotation

Go to Definition

Navigate directly to translation definitions in locale files:

Goto

Quick Fix

Fixes lazy I18n keys (e.g. converts lazy keys to full keys):

quickfix

Configuration

Configure the extension through VS Code settings:

Setting Description Default
railsI18n.translateMethods I18n translate methods ["I18n.translate", "I18n.t", "t"]
railsI18n.localizeMethods I18n localize methods ["I18n.localize", "I18n.l", "l"]
railsI18n.localeFilePattern Locale file glob pattern "config/locales/*.yml"
railsI18n.priorityOfLocales Priority order for languages ["en"]
railsI18n.languagesEnableHoverProvider Languages for hover support ["ruby", "erb", "haml", "slim"]
railsI18n.annotations Enable inline annotations true
railsI18n.annotationInPlace Show translation text inline true
railsI18n.annotationMaxLength Max annotation text length 40

Commands

Access these commands via Command Palette (Cmd+Shift+P):

  • Rails I18n: Reload locale files - Refresh translation files
  • Rails I18n: Go to Translation - Browse and navigate to translations

Getting Started

  1. Install the extension
  2. Open a Rails project with config/locales/*.yml files
  3. Start editing Ruby, ERB, HAML, or Slim files
  4. Enjoy intelligent I18n support!
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft