Internationalization of Messages in play 2.6 #11468
Replies: 2 comments
-
You need to use
https://www.playframework.com/documentation/2.8.x/MessagesMigration26 Here is a sample of how to use |
Beta Was this translation helpful? Give feedback.
-
More generally, 2.3 to 2.6 is a big jump, reflecting many years of evolution of Play. In the middle of that is the huge philosophical shift from globals and statics to doing everything with dependency injection. I'd recommend doing that upgrade one major version at a time, and dealing with all the deprecations at each step before proceeding to the next. |
Beta Was this translation helpful? Give feedback.
-
Hello , I am migrating from play 2.3 to 2.6 and getting many errors related to
For example this is the code in my Application controller
And my
instruments.scala.html
containsAfter changing my controller to following and keeping the instruments.scala as it is I am getting a new error .
In controller I am using the package :
play.i18n.Messages
Which message parameter do I pass from my controller ?
Can someone help me with this migration ?
Beta Was this translation helpful? Give feedback.
All reactions