class DefaultLangs extends Langs
- Annotations
- @Singleton()
- Source
- Langs.scala
- Alphabetic
- By Inheritance
- DefaultLangs
- Langs
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new DefaultLangs()
-
new
DefaultLangs(availables: Seq[Lang] = Seq(Lang.defaultLang))
- Annotations
- @Inject()
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asJava: i18n.Langs
- returns
the Java version for this Langs.
- Definition Classes
- Langs
-
val
availables: Seq[Lang]
The available languages.
The available languages.
These can be configured in
application.conf
, like so:play.i18n.langs = ["fr", "en", "de"]
- Definition Classes
- DefaultLangs → Langs
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
-
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()
-
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
- Definition Classes
- Langs
-
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
- @throws( ... ) @native()