Class LocaleFactory


  • public final class LocaleFactory
    extends Object
    Author:
    Simon Thoresen Hult
    • Method Detail

      • fromLanguageTag

        public static Locale fromLanguageTag​(String tag)
        Implements a simple parser for RFC5646 language tags. The language tag is parsed into a Locale.
        Parameters:
        tag - the language tag to parse
        Returns:
        the corresponding Locale