An entity's preferred language.
Messages externalization
Messages externalization
You would use it like so:
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.
An entity's preferred language.
A convenient type class to represent a preferred language of a user or session or whatever.
Use it in the companion object:
Lang