Closed Bug 1164653 Opened 11 years ago Closed 11 years ago

Exposing Intl algorithms to Chrome code (or maybe even to teh Webs)

Categories

(Core :: JavaScript: Internationalization API, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox41 --- affected

People

(Reporter: marcosc, Unassigned)

Details

The Intl.js built-in has some really useful functions for processing and dealing with language tags. It would be nice to expose those to chrome code somehow. For example, I'm having to process a language tag in something I'm implementing by doing: Intl.Collator("foo").resolvedOptions().locale (Is there a better way?)
The DOM doesn't have access to the Intl.js stuff directly. That's all SpiderMonkey-internal.
Component: DOM → JavaScript Engine
If these are useful to chrome code, they're probably useful to any code working with language tags. That makes them a fair candidate for being in ECMAScript proper. Could you send mail to https://mail.mozilla.org/listinfo/es-discuss pointing out the things you wish you could use, and how, so that they're considered for general exposure? SpiderMonkey doesn't really implement things any more unless they're standards-track, basically.
Component: JavaScript Engine → JavaScript: Internationalization API
Isn't Intl already on the standards track? Isn't that what this whole Bugzilla component is about? http://norbertlindenberg.com/2012/12/ecmascript-internationalization-api/index.html
The Intl object is standardized, yes. Comment 0 asks about particular algorithms in js/src/builtin/Intl.js that are specified for internal use in the ECMAScript Internationalization API, which includes the Intl object, but that are not *directly* exposed.
(In reply to Jeff Walden [:Waldo] (remove +bmo to email) from comment #5) > The Intl object is standardized, yes. Comment 0 asks about particular > algorithms in js/src/builtin/Intl.js that are specified for internal use in > the ECMAScript Internationalization API, which includes the Intl object, but > that are not *directly* exposed. Exactly, I want to access the algorithms for parsing language tags, etc. I can only access those indirectly right now.
(In reply to Jeff Walden [:Waldo] (remove +bmo to email) from comment #2) > If these are useful to chrome code, they're probably useful to any code > working with language tags. That makes them a fair candidate for being in > ECMAScript proper. Could you send mail to > https://mail.mozilla.org/listinfo/es-discuss pointing out the things you > wish you could use, and how, so that they're considered for general > exposure? Will do. > SpiderMonkey doesn't really implement things any more unless > they're standards-track, basically. Makes sense. Closing.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.