Class I18nUtils

  • public final class I18nUtils
    extends Object
    Utility class for internationalization. This class provides a central location to do specialized formatting in both a default and a locale specfic manner
    • Method Detail

      • getLocaleFromString

        public static Locale getLocaleFromString​(String localeString)
        Convert a string based locale into a Locale Object. Assumes the string has form "{language}_{country}_{variant}". Examples: "en", "de_DE", "_GB", "en_US_WIN", "de__POSIX", "fr_MAC"
        localeString - The String
        the Locale