< Back
 

# Packages

-  package root
  Definition Classes
    root
-  package uk
  Definition Classes
    root
-  package gov
  Definition Classes
    uk
-  package hmrc
  Definition Classes
    gov
-  package play
  Definition Classes
    hmrc
-  package language
  Definition Classes
    play
- LanguageController
- LanguageUtils

p

uk.gov.hmrc.play

# language 

#### package language

### Type Members

1.  abstract class LanguageController extends AbstractController with 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.

2.  class LanguageUtils extends AnyRef

   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.

### Ungrouped