Class LocaleUtil


  • public final class LocaleUtil
    extends Object
    Locale utility methods.
    Restriction:
    Clients are not allowed to extend a class or interface
    • Method Detail

      • createLocale

        public static Locale createLocale​(String localeAsString)
        Create locale from given string representation (see Locale.toString()).
        Parameters:
        localeAsString - string-represented locale.
        Returns:
        created locale, never null
      • isRtlLanguage

        public static boolean isRtlLanguage​(String languageCode)
        Determines whether the editing language is RTL-based or not.
        Parameters:
        languageCode - the language code of the configuration editing language, can be null
        Returns:
        true if editing language is RTL-based