Re: Introducing LocaleService and mozILocaleService

2017-02-07 Thread zbraniecki
On Tuesday, February 7, 2017 at 2:33:05 PM UTC-8, Gijs Kruitbosch wrote: > Please can you add an alias into Services.jsm so that > Services.locale. works ? Yeah, filed bug https://bugzilla.mozilla.org/show_bug.cgi?id=1337551 > > Also, that particular API looks like it might as well be a readonl

Re: Introducing LocaleService and mozILocaleService

2017-02-07 Thread Gijs Kruitbosch
On 07/02/2017 19:38, zbranie...@mozilla.com wrote: JS [2]: ``` const localeService = Components.classes["@mozilla.org/intl/localeservice;1"] .getService(Components.interfaces.mozILocaleService); const appLocales = localeService.getAppLocales(); Please can you add an alias into Services.jsm

Introducing LocaleService and mozILocaleService

2017-02-07 Thread zbraniecki
Hi devs, intl/locale is going through a refactor phase to get us ready for the new localization framework and the new l10n UX [0]. As part of it, we just landed a new LocaleService that is going to take over from nsLocaleService and nsChromeRegistry as the API for locale negotiation for the pl