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

This entry was posted in Feature, WhatsMining and tagged , . Bookmark the permalink.

6 Responses to What’s mining: Rails i18n support

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

  2. Oleg Shpynov says:


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

  3. 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. Oleg Shpynov says:

    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. Pavel Vasev says:

    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. James says:

    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.

Leave a Reply

Your email address will not be published. Required fields are marked *