public class LocaleUtils
extends java.lang.Object
Constructor and Description |
---|
LocaleUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
toBcp47Language(java.util.Locale locale)
Returns a well-formed IETF BCP 47 language tag representing
the locale identifier for the client's current locale
|
public static java.lang.String toBcp47Language(java.util.Locale locale)
locale
- the Locale to be translated to BCP47