Package com.yahoo.language
Class LocaleFactory
java.lang.Object
com.yahoo.language.LocaleFactory
- Author:
- Simon Thoresen Hult
-
Method Summary
Modifier and TypeMethodDescriptionstatic Locale
fromLanguageTag
(String tag) Implements a simple parser for RFC5646 language tags.
-
Method Details
-
fromLanguageTag
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
-