RubyMine
 
Get RubyMine

Internationalization and localization

Last modified: 08 October 2024

RubyMine supports various features that help you internationalize and localize Rails applications and plain Ruby projects. You can create or edit locale properties using intention actions right in the editor, run an inspection allowing you to find missing keys, preview localized values, and so on. These capabilities are available for various project file types, including ruby scripts, HTML, ERB, and HAML files.

Following i18n conventions, RubyMine automatically loads dictionary files (YAML or Ruby) stored in the config/locales directory. If necessary, you can provide custom paths. To do this, open the Settings dialog CtrlAlt0S, go to the Project Structure page and switch to the I18n tab.

We’ll use the sample Rails application to show internationalization capabilities of the IDE. You can repeat the steps below by checking out this application.