Class DefaultLocaleLanguage


  • public final class DefaultLocaleLanguage
    extends Object
    Utility methods to get current Locale dependent default language and script variant settings.
    Restriction:
    This class is not intended to be sub-classed by clients.
    Restriction:
    This class is not intended to be instantiated by clients.
    • Method Detail

      • getDefaultLanguage

        public static Language getDefaultLanguage()
        Returns application shared default Language to use based on current JVM Locale.

        This instance is shared among the entire application and must not be attached to any configuration. To attach default language to the configuration client may use createDefaultLanguage() method.

        Returns:
        the default Language to use, cannot be null
      • createDefaultLanguage

        public static Language createDefaultLanguage()
        Creates and returns a new default Language instance to use based on current JVM Locale.
        Returns:
        the created default Language to use based on current JVM Locale