Skip to content

VS Code extension for Ruby on Rails projects that shows the defined translation for i18n keys in view files.

Notifications You must be signed in to change notification settings

shanehofstetter/rails-i18n-vscode

Repository files navigation

Rails i18n

Build Status

Donate

Rails i18n helper for Visual Studio Code

Features

  • Default supported template languages: haml, erb and slim
    • others can be configured by adding the language identifier to the railsI18n.languageIdentifiers setting
  • Shows translation (in configured default locale) when hovering over i18n keys

alt text

  • Provides autocompletion when typing i18n keys

alt text

  • Supports multiple workspaces
  • Evaluates and parses yaml files configured in I18n.load_path (turned off per default, turn it on by setting railsI18n.loadAllTranslations to true)
  • Provides definition for i18n keys (Command 'Go To Definition' (F12 or +))

alt text

Known Issues

  • RVM not supported

Release Notes

Planned Features

  • add a setting and feature to show translations of all available locales on hover
  • go-to-definition creates key in yaml file if it does not already exist
  • copy dot-separated translation keys into clipboard from yaml file

About

VS Code extension for Ruby on Rails projects that shows the defined translation for i18n keys in view files.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published