Intent to prototype and ship: Intl.LocaleInfo

92 views
Skip to first unread message

Daniel Minor

unread,
May 27, 2026, 2:20:14 PM (10 days ago) May 27
to dev-pl...@mozilla.org

As of Firefox 153, I intend to turn Intl.LocaleInfo on by default. It has been developed behind the javascript.options.experimental.intl_locale_info preference. Our implementation was contributed by André Bargull, thanks Anba!

Summary:
Intl.LocaleInfo adds locale-specific information APIs to Intl.Locale, including week data, text direction, hour cycle, calendars, collations, numbering systems, and measurement systems. This improves interoperability and enables web developers to build better locale-aware experiences without relying on CLDR data.

Bug to turn on by default:
https://bugzilla.mozilla.org/show_bug.cgi?id=2037069

Specification:
https://github.com/tc39/proposal-intl-locale-info

Standards Body:
TC39

Platform Coverage:
All

Preference:
javascript.options.experimental.intl_locale_info

DevTools Bug:
N/A

Extensions Bug:
N/A

Use Counter:
N/A

Standards-Positions Discussion:
N/A

Other Browsers (according to MDN compatibility data):

  • Blink: Chromium 130
  • WebKit: Safari 17

web-platform-tests:
Covered by Test262, e.g. https://github.com/tc39/test262/tree/main/test/intl402/Locale/prototype.


Tom Ritter

unread,
Jun 1, 2026, 7:01:38 PM (5 days ago) Jun 1
to Daniel Minor, dev-pl...@mozilla.org
Do we have tests that ensure this respects the locale spoofing preference?

--
You received this message because you are subscribed to the Google Groups "dev-pl...@mozilla.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dev-platform...@mozilla.org.
To view this discussion visit https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAC_Rxa6B4Y%3DN07d-EjB2B6nE5jEs5%3D0Sy8%2BG-7vkVCq__EkqNQ%40mail.gmail.com.

Daniel Minor

unread,
Jun 2, 2026, 9:50:06 AM (4 days ago) Jun 2
to Tom Ritter, dev-pl...@mozilla.org
If the preference is `privacy.spoof_english`, then no. What would the expected behaviour be in this case? The new APIs allow querying any provided Locale, not just specifically the user's Locale, so offhand, I wouldn't expect the pref to change the behaviour.

Tom Ritter

unread,
Jun 2, 2026, 1:56:23 PM (4 days ago) Jun 2
to Daniel Minor, Tom Ritter, dev-pl...@mozilla.org
> What would the expected behaviour be in this case?

If you're querying a specific locale, that's fine, but if you can omit that argument and just get the values for the user's locale, then it should respect the override and return the English/overwridden values.

-tom
Reply all
Reply to author
Forward
0 new messages