Play 框架,i18n“messages.*";在子文件夹中 [英] Play framework, i18n "messages.*" in subfolders
本文介绍了Play 框架,i18n“messages.*";在子文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想把conf/messages
放到子文件夹中,比如conf/lang/messages
.文档中没有任何内容:https://www.playframework.com/documentation/2.4.x/JavaI18N.
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 ?
推荐答案
这个Messages.scala 源代码有线索:
protected val messagesPrefix =
config.getDeprecated[Option[String]]("play.i18n.path", "messages.path")
我还没有在 2.4 中尝试过,但看起来值得一试.
I have not tried it in 2.4 yet, but it looks worth taking for a spin.
这篇关于Play 框架,i18n“messages.*";在子文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文