Packages

trait Langs extends AnyRef

Manages languages in Play

Source
Langs.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Langs
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def availables: Seq[Lang]

    The available languages.

    The available languages.

    These can be configured in application.conf, like so:

    play.i18n.langs = ["fr", "en", "de"]

Concrete Value Members

  1. def asJava: i18n.Langs

    returns

    the Java version for this Langs.

  2. def preferred(candidates: Seq[Lang]): Lang

    Select a preferred language, given the list of candidates.

    Select a preferred language, given the list of candidates.

    Will select the preferred language, based on what languages are available, or return the default language if none of the candidates are available.

    This implements the Matching of Language Tags specified in RFC 4647 section 3.4.

    candidates

    List of candidates ordered by user's preferences