Early Access Program Features

What’s mining: Rails i18n support

Hello folks,

Today we are going to tell you about forthcoming Rails i18n support in RubyMine. This functionality is planned for RubyMine 1.5 release in our roadmap, and you will be able to try it in next EAP builds. Feature is under development so comments, suggestions and even feature requests are very welcome 🙂

At the moment RubyMine supports the following:

  • Resolve and completion for property keys with quick navigation info. Autocompletion for property keys:
  • Go to declaration action:
  • Convenient usages search for property keys
  • Rename property key in locale files with all usages
  • Rails conventions for templates key prefixes
  • Inspection with quickfix for undefined property key. RubyMine offers to apply “Create property” quickfix.

Not all the desired functionality is implemented yet, but we are working hard on it. Just want to mention some of the further feautures:

  • Duplicate property key Inspection
  • Intention to i18nize plain text value
  • Check whether all the keys present in given locale file
  • your suggestions?

Please do not hesistate and let us know your opinion about all this at our forum at: http://www.jetbrains.net/devnet/community/ruby

-JetBrains RubyMine Team

Comments below can no longer be edited.

6 Responses to What’s mining: Rails i18n support

  1. Avatar

    J. Pablo Fernández says:

    September 1, 2010

    How do you get the quick fix menu? I have the yellow underline but not the light bulb.

  2. Avatar

    Oleg Shpynov says:

    September 1, 2010


    Have you tried Alt+Enter combination while staying on the underlined string?

  3. Avatar

    J. Pablo Fernández says:

    September 2, 2010

    Yeap, that was it Oleg.

    How do I change the locale file that RubyMine uses to display strings instead of calls to t() inline in the code? It would be nice if I can get those strings in a language I can read.


  4. Avatar

    Oleg Shpynov says:

    September 2, 2010

    At the moment i18n calls are replaced with the corresponding translation only if value has only single translation. In case when there are more than one translation available we don’t do anything now.
    You can use Ctrl+- to fold them manually.

  5. Avatar

    Pavel Vasev says:

    January 12, 2015

    Dear RubyMine developers!
    I tried to find questions to very important things, now, 4 years later than this post, and failed…
    1. Is there any way to “refactor” code, thus creating new translation key?
    2. Does “Create property” quickfix works in views?
    3. Is there any way to display strings instead of calls to t() inline in the code now?

    Thanks in advance!

  6. Avatar

    James says:

    February 27, 2017

    If you are involved in the process of translation your Rails app, you may need a converter like this one http://yml2po.com/ to convert your .yaml files to po files.

Discover more