Class LocaleUtils


  • public class LocaleUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      LocaleUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.util.Locale> getAvailableLocales​(boolean andRegionalVariants)
      Returns the available locales, sorted.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LocaleUtils

        public LocaleUtils()
    • Method Detail

      • getAvailableLocales

        public static java.util.List<java.util.Locale> getAvailableLocales​(boolean andRegionalVariants)
        Returns the available locales, sorted. If andRegionalVariants is true, they will be included, otherwise only the base languages will be returned.