Uncategorized

I18n for Scala

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. Avatar

      OlegYch says:

      July 27, 2012

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

    2. Avatar

      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? 🙂

      • Avatar

        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?).

        • Avatar

          Yule says:

          August 8, 2012

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

    Discover more