Skip to content

feat(intl): add ListFormat, DisplayNames, and Segmenter wrappers #140

Description

@marcstraube

Summary

Extend the intl module with the remaining Intl wrappers deferred from #139:

  • Intl.ListFormatformatList(items, locale?, options?) ("a, b, and c").
  • Intl.DisplayNames — display names for languages/regions/currencies/scripts.
  • Intl.Segmenter — grapheme/word/sentence segmentation.

Follow the v1 pattern exactly: cached formatter via getCachedFormatter, throwing

  • Result variants, IntlError classification, strict types, 100% coverage,
    mutation >= 85%, and a documentation/intl.md update.

Segmenter has the most nuanced API and can land in a separate step if needed.

Metadata

Metadata

Assignees

Labels

effort:mMedium (30 min - 2h)enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions