uk.gov.hmrc.play.language
Members list
Type members
Classlikes
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 I18nSupporttrait I18NSupportLowPriorityImplicitsclass AbstractControllertrait BaseControllertrait BaseControllerHelperstrait ControllerHelperstrait RequestImplicitstrait Renderingtrait RequestExtractorstrait AcceptExtractorstrait ContentTypestrait HeaderNamestrait Statustrait HttpProtocoltrait Resultsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class LanguageController
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 Objecttrait Matchableclass Any