public final class XPTI18NBean extends Object
Constructor and Description |
---|
XPTI18NBean() |
Modifier and Type | Method and Description |
---|---|
static XPTI18NBean |
get() |
static XPTI18NBean |
get(javax.faces.context.FacesContext context) |
List<String> |
getAllLanguages()
All languages of the current application
|
String |
getCurrentLanguage()
Evaluates the current language
|
String |
getDefaultLanguage()
The default language of this application
|
String |
getJSRepresentation(String varName,
String languageForce)
Builds the JS representation of the language values as a JSON object.
|
List<String> |
getKeys()
List of keys
|
String |
getValue(String key)
Language value for key using the current language
|
String |
getValue(String key,
String language)
Language value for key using the specified language
|
public static final String BEAN_NAME
public static XPTI18NBean get(javax.faces.context.FacesContext context)
public static XPTI18NBean get()
public String getCurrentLanguage()
public List<String> getAllLanguages()
public String getDefaultLanguage()
public String getValue(String key)
key
- public String getValue(String key, String language)
key
- language
- Copyright © 2021. All Rights Reserved.