public class LocaleUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
Set<org.gwtproject.i18n.shared.GwtLocale> |
getAllCompileLocales()
Returns the set of all compile-time locales.
|
Set<org.gwtproject.i18n.shared.GwtLocale> |
getAllLocales()
Returns the set of all available locales, whether compile-time locales or runtime locales.
|
org.gwtproject.i18n.shared.GwtLocale |
getCompileLocale()
Returns the static compile-time locale for this permutation.
|
String |
getCookie()
Return the name of the cookie to potentially get the locale value from.
|
static LocaleUtils |
getInstance(Messager logger,
PropertyOracle propertyOracle,
ProcessorContext context)
Create a new LocaleUtils instance for the given PropertyOracle.
|
static org.gwtproject.i18n.shared.GwtLocaleFactory |
getLocaleFactory()
Get a shared GwtLocale factory so instances are cached between all uses.
|
String |
getQueryParam()
Return the name of the URL query param to potentially get the locale value from.
|
Set<org.gwtproject.i18n.shared.GwtLocale> |
getRuntimeLocales()
Returns a list of locales which are children of the current compile-time locale.
|
public static LocaleUtils getInstance(Messager logger, PropertyOracle propertyOracle, ProcessorContext context)
logger - propertyOracle - public static org.gwtproject.i18n.shared.GwtLocaleFactory getLocaleFactory()
public Set<org.gwtproject.i18n.shared.GwtLocale> getAllCompileLocales()
public Set<org.gwtproject.i18n.shared.GwtLocale> getAllLocales()
public org.gwtproject.i18n.shared.GwtLocale getCompileLocale()
public String getCookie()
public String getQueryParam()
public Set<org.gwtproject.i18n.shared.GwtLocale> getRuntimeLocales()
Copyright © 2018–2020. All rights reserved.