Search code examples
playframeworkplayframework-2.4

Play framework, i18n "messages.*" in subfolders


I want to put conf/messages into subfolder, like conf/lang/messages. There is nothing about this in documentation: https://www.playframework.com/documentation/2.4.x/JavaI18N.

Did someone resolve this problem ?


Solution

  • This Messages.scala source code has a clue:

    protected val messagesPrefix =
      config.getDeprecated[Option[String]]("play.i18n.path", "messages.path")
    

    I have not tried it in 2.4 yet, but it looks worth taking for a spin.