public class DefaultLocaleProvider extends Object implements LocaleProvider
LocaleProvider. Loads locales from
the classpath.| Constructor and Description |
|---|
DefaultLocaleProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
retrieveLocale(String lang)
Retrieves the serialized XML for the given locale from the classpath.
|
public String retrieveLocale(String lang)
en-US this method loads
the file /locales-en-US.xml from the classpath.retrieveLocale in interface LocaleProviderlang - the locale identifier (e.g. "en" or "en-GB")