Platform notes¶
These notes describe runtime support and limitations.
JavaScript limitations¶
Intl is a curated formatting subset of ICU — it has no parser, transform
engine, spoof checker, locale matcher, or resource access. The following methods
are unavailable:
spellout()— spell a number out ("one hundred twenty") — needs RBNFordinal()— ordinal text ("1st", "2nd") (the ordinal plural category is available viapluralCategory())quote()— wrap text in the locale's quotation marks (CLDR delimiter data)get()— raw ICUResourceBundleaccessformatMoment()— arbitrary ICU date/time patternstransliterate()/romanize()— script conversion & ASCII slugs (needsTransliterator)confusable()/suspicious()— spoof detection (needsSpoofChecker)parseNumber()/parseMoney()/parseDate()/parseMoment()—Intlis format-onlybestMatch()/ negotiatingfromAcceptLanguage()— needsLocaleMatcherindexBuckets()— needsAlphabeticIndex
JavaScript also does not infer a currency from the region: money() requires
an explicit currency code or the currency modifier.
Locale data¶
Cosmo reads locale data from ICU instead of maintaining hardcoded tables. Data updates follow the runtime or bundled ICU version. Updating Cosmo alone does not necessarily update locale data.