@Singleton public class LocaleSelector extends Object
Constructor and Description |
---|
LocaleSelector() |
Modifier and Type | Method and Description |
---|---|
Collection<Locale> |
getSupportedLocales()
Get all locales that your application supports, all the bundles that you have provided.
|
void |
select(String locale)
Set the
locale as the current locale |
public static final String DEFAULT
public Collection<Locale> getSupportedLocales()
public void select(String locale)
locale
as the current localelocale
- the locale to set as the currentCopyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.