Tuesday, March 8, 2016

Custom path of the messages

The guide says "You can externalize messages in the conf/messages.xxx files.". If you have a dozen languages it will be a mess of messages files in the config folder. Fortunately, there is property in the application.conf file that somehow fell off the tutorial - play.i18n.path. You can assign this variable the value that will prefix of messages files.
play.i18n.path = messages/
Will say the Play to look into the conf/messages folder for the messages.xxx files

No comments:

Post a Comment