case class Lang(locale: Locale) extends Product with Serializable
- Alphabetic
- By Inheritance
- Lang
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def asJava: i18n.Lang
- returns
the Java version for this Lang.
- lazy val code: String
The language tag (such as fr or en-US).
- def country: String
- returns
The country for this Lang, or "" if none exists.
- def language: String
- returns
The language for this Lang.
- val locale: Locale
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def script: String
- returns
The script tag for this Lang, or "" if none exists.
- def toLocale: Locale
Convert to a Java Locale value.
- def variant: String
- returns
The variant tag for this Lang, or "" if none exists.
Deprecated Value Members
- 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
A Lang supported by the application.