@@ -51,6 +51,37 @@ public static function provideSetValue()
5151 'expDataValue ' => '14000.5 ' ,
5252 'expValue ' => '14.000,5 ' ,
5353 ],
54+ // de_CH
55+ [
56+ 'locale ' => 'de_CH ' ,
57+ 'scale ' => 0 ,
58+ 'input ' => '13000 ' ,
59+ 'expValue ' => "13’000 "
60+ ],
61+ [
62+ 'locale ' => 'de_CH ' ,
63+ 'scale ' => 0 ,
64+ 'input ' => '15 ' ,
65+ 'expValue ' => '15 '
66+ ],
67+ [
68+ 'locale ' => 'de_CH ' ,
69+ 'scale ' => null ,
70+ 'input ' => '12.0 ' ,
71+ 'expValue ' => '12.0 '
72+ ],
73+ [
74+ 'locale ' => 'de_CH ' ,
75+ 'scale ' => null ,
76+ 'input ' => '12.1 ' ,
77+ 'expValue ' => '12.1 '
78+ ],
79+ [
80+ 'locale ' => 'de_CH ' ,
81+ 'scale ' => 1 ,
82+ 'input ' => '14000.5 ' ,
83+ 'expValue ' => "14’000.5 "
84+ ],
5485 // nl
5586 [
5687 'locale ' => 'nl_NL ' ,
@@ -321,6 +352,74 @@ public static function dataForTestSubmittedValue()
321352 'submittedValue ' => '15,000.5 ' ,
322353 'dataValue ' => false ,
323354 ],
355+ // de_CH (Swiss German)
356+ [
357+ 'locale ' => 'de_CH ' ,
358+ 'scale ' => 0 ,
359+ 'submittedValue ' => '13000 ' ,
360+ 'dataValue ' => 13000 ,
361+ 'cleanedInput ' => '13’000 '
362+ ],
363+ [
364+ 'locale ' => 'de_CH ' ,
365+ 'scale ' => 2 ,
366+ 'submittedValue ' => '12,00 ' ,
367+ 'dataValue ' => false
368+ ],
369+ [
370+ 'locale ' => 'de_CH ' ,
371+ 'scale ' => 2 ,
372+ 'submittedValue ' => '12.00 ' ,
373+ 'dataValue ' => 12.00
374+ ],
375+ [
376+ 'locale ' => 'de_CH ' ,
377+ 'scale ' => 1 ,
378+ 'submittedValue ' => '11 000 ' ,
379+ 'dataValue ' => 11000 ,
380+ 'cleanedInput ' => "11’000.0 "
381+ ],
382+ [
383+ 'locale ' => 'de_CH ' ,
384+ 'scale ' => 0 ,
385+ 'submittedValue ' => "11.000 " ,
386+ 'dataValue ' => 11 ,
387+ 'cleanedInput ' => "11 "
388+ ],
389+ [
390+ 'locale ' => 'de_CH ' ,
391+ 'scale ' => null ,
392+ 'submittedValue ' => '11,000 ' ,
393+ 'dataValue ' => 11000.0 ,
394+ 'cleanedInput ' => '11’000.0 '
395+ ],
396+ [
397+ 'locale ' => 'de_CH ' ,
398+ 'scale ' => 1 ,
399+ 'submittedValue ' => '15 000,5 ' ,
400+ 'dataValue ' => false
401+ ],
402+ [
403+ 'locale ' => 'de_CH ' ,
404+ 'scale ' => 1 ,
405+ 'submittedValue ' => "15 000.5 " ,
406+ 'dataValue ' => 15000.5 ,
407+ 'cleanedInput ' => '15’000.5 '
408+ ],
409+ [
410+ 'locale ' => 'de_CH ' ,
411+ 'scale ' => 1 ,
412+ 'submittedValue ' => '15.000,5 ' ,
413+ 'dataValue ' => false
414+ ],
415+ [
416+ 'locale ' => 'de_CH ' ,
417+ 'scale ' => 1 ,
418+ 'submittedValue ' => '15,000.5 ' ,
419+ 'dataValue ' => 15000.5 ,
420+ 'cleanedInput ' => '15’000.5 '
421+ ],
422+ // nl_nl (same as de)
324423 [
325424 'locale ' => 'nl_NL ' ,
326425 'scale ' => 0 ,
@@ -385,6 +484,7 @@ public static function dataForTestSubmittedValue()
385484 'submittedValue ' => '15,000.5 ' ,
386485 'dataValue ' => false ,
387486 ],
487+ // fr
388488 [
389489 'locale ' => 'fr_FR ' ,
390490 'scale ' => 0 ,
@@ -456,6 +556,7 @@ public static function dataForTestSubmittedValue()
456556 'submittedValue ' => '15,000.5 ' ,
457557 'dataValue ' => false ,
458558 ],
559+ // us
459560 [
460561 'locale ' => 'en_US ' ,
461562 'scale ' => 0 ,
@@ -521,6 +622,7 @@ public static function dataForTestSubmittedValue()
521622 'submittedValue ' => '15,000.5 ' ,
522623 'dataValue ' => '15000.5 ' ,
523624 ],
625+ // 'html5'
524626 [
525627 'locale ' => 'html5 ' ,
526628 'scale ' => 0 ,
0 commit comments