public final class Localisation
extends java.lang.Object
Constructor and Description |
---|
Localisation(java.lang.String resource) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayCountry(java.lang.String iso2)
Get the country name for supplied iso2 code
|
java.util.Locale |
getLocale()
Get the locale
|
java.lang.String |
getString(java.lang.String key)
Get localised string using given key
|
java.lang.String[] |
getStrings(java.lang.String... keys)
Get an array of localised strings using a key array or multiple keys
|
java.lang.String |
toWebLanguageTag() |
public java.util.Locale getLocale()
public java.lang.String toWebLanguageTag()
public java.lang.String getDisplayCountry(java.lang.String iso2)
iso2
- public java.lang.String getString(java.lang.String key)
key
- public java.lang.String[] getStrings(java.lang.String... keys)
keys
-