play.api.i18n.I18NSupportLowPriorityImplicits
Clears the user's language by discarding the language cookie set by withLang
Clears the user's language by discarding the language cookie set by withLang
For example:
implicit val messagesApi: MessagesApi = ... Ok(Messages("hello.world")).clearingLang
the new result
Sets the user's language permanently for future requests by storing it in a cookie.
Sets the user's language permanently for future requests by storing it in a cookie.
For example:
implicit val messagesApi: MessagesApi = ... val lang = Lang("fr-FR") Ok(Messages("hello.world")).withLang(lang)
the language to store for the user
the new result
Adds convenient methods to handle the client-side language