case class Lang(locale: Locale) extends Product with Serializable

A Lang supported by the application.

Source
Langs.scala
Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Lang
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Lang(locale: Locale)

Value Members

  1. def asJava: i18n.Lang

    returns

    the Java version for this Lang.

  2. lazy val code: String

    The language tag (such as fr or en-US).

  3. def country: String

    returns

    The country for this Lang, or "" if none exists.

  4. def language: String

    returns

    The language for this Lang.

  5. val locale: Locale
  6. def productElementNames: Iterator[String]
    Definition Classes
    Product
  7. def script: String

    returns

    The script tag for this Lang, or "" if none exists.

  8. def toLocale: Locale

    Convert to a Java Locale value.

  9. def variant: String

    returns

    The variant tag for this Lang, or "" if none exists.

Deprecated Value Members

  1. def satisfies(accept: Lang): Boolean

    Whether this lang satisfies the given lang.

    Whether this lang satisfies the given lang.

    If the other lang defines a country code, then this is equivalent to equals, if it doesn't, then the equals is only done on language and the country of this lang is ignored.

    This implements the language matching specified by RFC2616 Section 14.4. Equality is case insensitive as per Section 3.10.

    accept

    The accepted language

    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) For the Locale Lookup, use Langs#preferred instead