@@ -85,9 +85,13 @@ public function getNumber($value)
85
85
*/
86
86
public function getPriceFormat ()
87
87
{
88
- $ numberElements = (new DataBundle ())->get ($ this ->_localeResolver ->getLocale ())['NumberElements ' ];
89
- $ format = $ numberElements ['latn ' ]['patterns ' ]['currencyFormat ' ];
90
- $ symbols = $ numberElements ['latn ' ]['symbols ' ];
88
+ $ localeData = (new DataBundle ())->get ($ this ->_localeResolver ->getLocale ());
89
+ $ format = $ localeData ['NumberElements ' ]['latn ' ]['patterns ' ]['currencyFormat ' ]
90
+ ?: explode ('; ' , $ localeData ['NumberPatterns ' ][1 ])[0 ];
91
+ $ decimalSymbol = $ localeData ['NumberElements ' ]['latn ' ]['symbols ' ]['decimal ' ]
92
+ ?: $ localeData ['NumberElements ' ][0 ];
93
+ $ groupSymbol = $ localeData ['NumberElements ' ]['latn ' ]['symbols ' ]['group ' ]
94
+ ?: $ localeData ['NumberElements ' ][1 ];
91
95
92
96
$ pos = strpos ($ format , '; ' );
93
97
if ($ pos !== false ) {
@@ -120,8 +124,8 @@ public function getPriceFormat()
120
124
'pattern ' => $ this ->_scopeResolver ->getScope ()->getCurrentCurrency ()->getOutputFormat (),
121
125
'precision ' => $ totalPrecision ,
122
126
'requiredPrecision ' => $ requiredPrecision ,
123
- 'decimalSymbol ' => $ symbols [ ' decimal ' ] ,
124
- 'groupSymbol ' => $ symbols [ ' group ' ] ,
127
+ 'decimalSymbol ' => $ decimalSymbol ,
128
+ 'groupSymbol ' => $ groupSymbol ,
125
129
'groupLength ' => $ group ,
126
130
'integerRequired ' => $ integerRequired ,
127
131
];
0 commit comments