uk.gov.hmrc.play.language

Members list

Type members

Classlikes

abstract class LanguageController(languageUtils: LanguageUtils, cc: ControllerComponents) extends AbstractController, I18nSupport

LanguageController that switches the language of the current web application.

LanguageController that switches the language of the current web application.

This trait provides a means of switching the current language and redirecting the user back to their original location. It expects a fallbackURL to be defined when implemented. It also expects a languageMap to be defined, this provides a way of mapping strings to Lang objects.

Attributes

Supertypes
trait I18nSupport
trait I18NSupportLowPriorityImplicits
class AbstractController
trait BaseController
trait BaseControllerHelpers
trait ControllerHelpers
trait RequestImplicits
trait Rendering
trait RequestExtractors
trait AcceptExtractors
trait ContentTypes
trait HeaderNames
trait Status
trait HttpProtocol
trait Results
class Object
trait Matchable
class Any
Show all
class LanguageUtils(langs: Langs, configuration: Configuration)(implicit messagesApi: MessagesApi)

This object provides access to common language utilities.

This object provides access to common language utilities.

This object contains language codes for English and Welsh and a function to return the current language based on a request header.

Additionally, a Dates object is provided which provides helper functions to return correctly formatted dates in both English and Welsh.

Attributes

Supertypes
class Object
trait Matchable
class Any