Class Locales


  • public final class Locales
    extends Object
    Static i18n methods.
    Since:
    2.4
    Author:
    Martin Desruisseaux
    • Method Detail

      • getAvailableLanguages

        public static Locale[] getAvailableLanguages()
        Returns available languages.
        Returns:
        Available languages.
      • getAvailableLocales

        public static Locale[] getAvailableLocales()
        Returns the list of available locales.
        Returns:
        Available locales.
      • getAvailableLocales

        public static String[] getAvailableLocales​(Locale locale)
        Returns the list of available locales formatted as string in the specified locale.
        Parameters:
        locale - The locale to use for formatting the strings to be returned.
        Returns:
        String descriptions of available locales.
      • main

        public static void main​(String... args)
        Prints the list of available locales.
        Parameters:
        args - Command-lines arguments.