I have input text field (type = string) which should accept number as input but the number format should be validated based on the defined locale code.
var number = '2,110.168';
if locale is en-in, this should be valid
if locale is nl-nl, this is not a valid format as it should be 2.110,168