I want advanced i18n features on the web platform
Submitted by Denis TRUFFAUT
Permalink https://webwewant.fyi/wants/a166898e-9c5d-42f8-8632-b443f1421971/
This idea is currently being discussed.
Building truly internationalized web applications is still surprisingly difficult. The existing Intl API covers the basics — number formatting, date/time formatting, and collation — but there are many gaps that force developers to rely on large third-party libraries just to handle everyday i18n scenarios.
I want the web platform to offer richer, more complete internationalization support, including:
- Locale-sensitive text segmentation: Better support for word and sentence boundaries across scripts (e.g. CJK languages, Thai), beyond what
Intl.Segmentercurrently provides. - Advanced number and unit formatting: Including support for local numbering systems, currency display names in the user's language, and measurement unit conversion.
- Relative time formatting improvements: More granular control over how relative times are displayed across cultures (e.g. "just now", "yesterday", "3 weeks ago").
- Locale-aware sorting and searching: Consistent, built-in support for culturally correct string comparison without needing third-party collation tables.
- Bidirectional (BiDi) text utilities: Native JavaScript APIs for isolating and managing BiDi text, complementing CSS
unicode-bidibut exposed to script so developers can handle mixed-direction strings programmatically.
These improvements would let developers deliver correctly localised experiences to global users without bundling megabytes of polyfill libraries.
- Votes
- 0
What are votes for and how are they tallied?