object Lang extends Serializable
Ordering
- Alphabetic
- By Inheritance
Inherited
- Lang
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- 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
- 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.
- 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.
- val jsonOReads: [Lang]
- val jsonOWrites: [Lang]
- implicit val jsonTagReads: [Lang]
- implicit val jsonTagWrites: [Lang]
- val logger: Logger
Utilities related to Lang values.