I18n for Scala

Posted on by Ksenia Sautina

The internationalization (I18N) support is available now in Scala plugin with following features:

  • Folding for i18n messages

  • Create new property intention

  • Navigation

  • Completion


    Comments below can no longer be edited.

    4 Responses to I18n for Scala

    1. OlegYch says:

      July 27, 2012

      Cool, thank you!
      Can you perhaps make it also work with symbols?

    2. Yule says:

      July 29, 2012

      Is this a feature of Play or standard Scala? I would like to use the feature but I can’t figure out the type of “MyBundle”. It’s not Java’s ResourceBundle, there’s no method “message(String)”. Could you give me a hint? 🙂

      • Alexander Podkhalyuzin says:

        August 7, 2012

        It’s Java feature, just supported also in Scala.
        Currently inspection checks any parameter on call side if parameter has annotation org.jetbrains.annotations.PropertyKey (you can take it from annotations.jar included in any IDEA build). And you can even not to use ResourseBundle (but do you want to do it?).

        • Yule says:

          August 8, 2012

          Thanks, now I see. I didn’t know about the PropertyKey annotation. I will try that. Thank you! 🙂