Class LocaleFactory

java.lang.Object
com.yahoo.language.LocaleFactory

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

    • 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