Store those values in YAML localization files.
It's hard enough to write hebrew in RubyMine or any other editor, it's even harder to write it when it's mixed with code.

You can use the https://github.com/fnando/i18n-js gem, which let you use your yaml localizations also in javascript.