Package com.squarespace.cldrengine.api
Interface CLocale
-
- All Known Implementing Classes:
CLocaleImpl
,LocaleImpl
public interface CLocale
Wrapper pairing an application's opaque locale identifier with a parsed and resolved language tag object. Prefixed with 'C' to distinguish it from Java's Locale.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
id()
Application's own identifier for the locale, e.g.LanguageTag
tag()
Language tag that has been parsed and resolved.
-
-
-
Method Detail
-
id
java.lang.String id()
Application's own identifier for the locale, e.g. 'en_US', 'fr-CA', etc. We preserve this since applications may use it as a unique key to resolve translated messages, and may be forced to use a legacy identifier.
-
tag
LanguageTag tag()
Language tag that has been parsed and resolved. Parsing canonicalizes the subtags, while resolution includes substituting language and territory aliases and adding likely subtags.
-
-