After reviewing the angular $locale documentation, I noticed that it only provides an id (in the form of languageId-countryId
). It would be helpful to have access to more specific information such as the decimal separator character. Is there a way to retrieve this data? Are there other services available for this purpose? My goal is to use this information in a custom directive.
Is the concept behind the locale objects defined in files like this one: https://code.angularjs.org/1.4.7/i18n/angular-locale_en-us.js, only accessible internally?
I couldn't locate the actual implementation of $locale in the angular source code. Can you provide insight on where to find it? Is the ability to access properties of the locale object a new feature request or does it already exist?
This query pertains to Angular 1.x specifically, not 2.x.
Edit
A request has been submitted to include this information in the public API, which can be found here.