Sounds like a bug. The stepsize should always be 0.1 because that is
interpreted as a number. But on click the display should be changing to 0,1
I updated the description to say
NumericStepper cannot display the correct decimal separator for various locale (fr_FR, ru_RU)
There are really two separate issues here:
(1) Halo NumberValidator produces a validation error for decimal values when locale is set to fr_FR
(2) Spark NumericStepper does not change decimal separator based on locale
I will file a separate issue for the Halo NumberValidator issue. The issue filed by Bill can be used to track the decimal separator not changing based on locale.
As a workaround, you can change the way the value is displayed by the NumericStepper by using the valueFormatFunction and valueParseFunction.
For example, the following will replace the "." decimal separator with a ",".
private function myFormatFunc(val:Number):String
private function myParseFunc(val:String):Number
var stringVal:String = val.replace(",",".");
<s:NumericStepper id="ns" stepSize="0.1" value="0" valueFormatFunction="myFormatFunc" valueParseFunction="myParseFunc"/>
Also note that if you use the Spark NumberValidator released as part of the Flex 4.5 beta, the validation error does not occur.
ok thank you