7

I am fighting to get i18n working with a number input. I want the user to input "," as decimal separator when language is danish.

In the plunkr http://plnkr.co/edit/WTPV8o9pJLjY4onjBEgW I have included danish i18n file. In chrome it allows both "," and "." as decimal separator. In firefox and IE it still only allows ".".

Am I missing something? :-)

Jonas
  • 71
  • 1
  • 3

1 Answers1

0

If you do not have to support legacy browsers without HTML5 support, you can use <input type="number" /> to get a correct validation against the browser's locale setting.

naitsirch
  • 5,968
  • 4
  • 41
  • 54