public class SupportedLocales extends Object
It allows you to specify the locale for language-specific operations, such as formatting and displaying messages.
For more information about locales, refer to the Java Locale documentation: Java Locale
Example usage:
final boolean localeSupported = SupportedLocales.isLocaleSupported(Locale.CANADA);
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isLocaleSupported(com.groupdocs.foundation.utils.CultureInfo culture)
Determines whether locale, represented as
CultureInfo, supported or not. |
static boolean |
isLocaleSupported(Locale locale)
Determines whether locale supported or not.
|
static boolean |
isLocaleSupported(String localeString)
Determines whether locale supported or not.
|
public static boolean isLocaleSupported(com.groupdocs.foundation.utils.CultureInfo culture)
Determines whether locale, represented as CultureInfo, supported or not.
culture - The culture to be checked, not nullpublic static boolean isLocaleSupported(Locale locale)
Determines whether locale supported or not.
locale - The locale to be checked, not nullpublic static boolean isLocaleSupported(String localeString)
Determines whether locale supported or not.
Format of localeString isxx-YY or xx_YY, examples: en-US, en_USlocaleString - The locale to be checked, may be nullCopyright © 2024. All rights reserved.