Skip to content Skip to sidebar Skip to footer

Internationalization At Html5

How can I change the messages of HTML5 (or doses it change according to browser's language automatically?) For example:

Solution 1:

Well there are different options.

  1. You can disable the form validation of the form (or the field) with formnovalidate and provide a custom error message with javascript (and serverside ofcourse).

  2. You can use javascript and use the .setCustomValidity() method to provide a (custom) error message but it is intended to add extra rules to the field.

  3. You can use x-moz-errormessage to set a custom errormessage. But using this you need to know that this is not a standard.

Solution 2:

There are no built-in internationalisation solutions currently in HTML(5) and all proposals seem dead. However you may find the Passive Localisation JavaScript library of some use. Online demonstration can be found here.

Post a Comment for "Internationalization At Html5"