Skip to content

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 RBNF
  • ordinal() — ordinal text ("1st", "2nd") (the ordinal plural category is available via pluralCategory())
  • quote() — wrap text in the locale's quotation marks (CLDR delimiter data)
  • get() — raw ICU ResourceBundle access
  • formatMoment() — arbitrary ICU date/time patterns
  • transliterate() / romanize() — script conversion & ASCII slugs (needs Transliterator)
  • confusable() / suspicious() — spoof detection (needs SpoofChecker)
  • parseNumber() / parseMoney() / parseDate() / parseMoment() — Intl is format-only
  • bestMatch() / negotiating fromAcceptLanguage() — needs LocaleMatcher
  • indexBuckets() — needs AlphabeticIndex

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.