title: Enums or sealed classes with strings
body: <p>Can I create an <code>enum</code> or a <code>sealed class</code> in <code>Kotlin</code> that contain string resources?</p>
  
  <p>For instance, I have this class:</p>
  
  <pre><code>private enum class Item(
      val id: Int,
      @DrawableRes val imageRes: Int,
      val title: String
  ) {
      PURSE(1, R.drawable.ic_card, "My balance"),
      MESSAGES(2, R.drawable.ic_bell, "Messages")
  }
  </code></pre>
  
  <p>If I add a field <code>val resources: Resources</code> in the constructor, I cannot set a parameter <code>resources</code>, so cannot use string resources from <code>strings.xml</code>. In this case I cannot use localization for <code>enum</code>s.</p>