How to render translation preview in erb file?

I was just fiddling around in an erb file, and noticed a line of text I was looking for which had a t(:"key", ...) line in it - but over the line was a rendering previewing the text output. Then it went away - I have no idea how I triggered it and can't get it back - but it was cool. Anyone know? (3.1.1)

3 comments
Comment actions Permalink

Hello Chris,

Translation preview can be shown instead of corresponding i18n only if the key has one translation in locale files. To show it you should fold the region under caret. Learn more about folding here: http://www.jetbrains.com/ruby/webhelp/code-folding.html

Regards,
Oleg

0
Comment actions Permalink

I'm usually only bothering to translate stuff if I have more than one language involved - is there not a way to use this functionality with a default locale?

0
Comment actions Permalink

We don't have a notion of default locale within RubyMine, feel free to submit feature request at: http://youtrack.jetbrains.net/issues/RUBY

Regards,
Oleg

0

Please sign in to leave a comment.