@Singleton
public class Langs
extends java.lang.Object
Constructor and Description |
---|
Langs(play.api.i18n.Langs langs) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Lang> |
availables()
The available languages.
|
Lang |
preferred(java.util.Collection<Lang> candidates)
Select a preferred language, given the list of candidates.
|
public java.util.List<Lang> availables()
play.i18n.langs = ["fr", "en", "de"]
public Lang preferred(java.util.Collection<Lang> candidates)
candidates
- The candidate languages