Localized(user) { implicit lang =>val error = Messages("error")
}
Messages are stored in messages_XXX.txt files in UTF-8 encoding in resources.
The lookup will fallback to default file messages.txt if the string is not found in
the language-specific file.
Messages are formatted with java.text.MessageFormat.
Messages externalization
Overview
You would use it like so:
Localized(user) { implicit lang => val error = Messages("error") }Messages are stored in
messages_XXX.txtfiles in UTF-8 encoding in resources. The lookup will fallback to default filemessages.txtif the string is not found in the language-specific file.Messages are formatted with
java.text.MessageFormat.