Reputation: 60
Some countries use in numbers the point as comma and the comma as decimal. Wiki Information This countries are Europe (except UK and Ireland), SudAmerica, Russia and French West Afica.
How is know if the user of Web in HTML5 is "Decimal point is Comma" or "Comma is Comma"?
Or I must have got a database of Languages with this data and it use in angular lang={{lang}}
Upvotes: 0
Views: 1150
Reputation: 25159
You simply cannot know enough about the user by using HTML5. It's up to them to tell you, since they could be living outside their country of origin. Once they tell you where they're from, you can use Angular internationalization features to help you format the various things:
https://docs.angularjs.org/guide/i18n
If you need to dive further into translation, there are multiple plugins to do so:
https://github.com/angular-translate/angular-translate
https://angular-gettext.rocketeer.be/
Upvotes: 1