0

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}}

2

1 Answer 1

1

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/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.