object Lang extends Serializable
- Alphabetic
- By Inheritance
- Lang
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(language: String, country: String = "", script: String = "", variant: String = ""): Lang
Create a Lang value from a code (such as fr or en-US) and throw exception if language is unrecognized
-
def
apply(code: String): Lang
Create a Lang value from a code (such as fr or en-US) and throw exception if language is unrecognized
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
lazy val
defaultLang: Lang
The default Lang to use if nothing matches (platform default).
The default Lang to use if nothing matches (platform default).
Pre 2.6.x, defaultLang was an implicit value, meaning that it could be used in implicit scope resolution if no Lang was found in local scope. This setting was too general and resulted in bugs where the defaultLang was being used instead of a request.lang, if request was not declared as implicit.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get(code: String): Option[Lang]
Create a Lang value from a code (such as fr or en-US) or none if language is unrecognized.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val jsonOReads: Reads[Lang]
- val jsonOWrites: OWrites[Lang]
- implicit val jsonTagReads: Reads[Lang]
- implicit val jsonTagWrites: Writes[Lang]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )