globalizejs / globalize

A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data
https://globalizejs.com
MIT License
4.8k stars 605 forks source link

Decimal numbers with comma fail validation in Germany or Turkish #846

Open suatsuphi opened 5 years ago

suatsuphi commented 5 years ago

Hi, I have Language option in my project with localization. if I use type="number" in Turkish Or German I get this error that "Please enter a number". Number is 1,5(with comma) if I use English, I mean 1.2 in Enlish, there is no problem. how to fix it ? why I can not use type="number"

public decimal Price { get; set; } <input asp-for="Price" class="form-control" type="number"/>