pro-components
pro-components copied to clipboard
🐛[BUG] ProFormMoney, locale="ru-RU"
trafficstars
When using <ProFormMoney locale="ru-RU" />, currency formatting for Russian (ru‑RU) is incorrect:
-
The ruble symbol “₽” is rendered before the number, while the ru‑RU locale requires it after the value: • actual: ₽ 1 ,234.56 • expected: 1 234,56 ₽
-
The thousands separator is shown as a comma or is missing instead of the narrow non‑breaking space (U+202F) used in Russian formatting: • actual: 1,234 ₽ / ₽1234 • expected: 1 234 ₽
-
numberFormatOptions has no effect. For example, the configuration below does not change the fraction digits or place the ₽ symbol correctly:
<ProFormMoney
name="price"
label="Price"
locale="ru-RU"
initialValue={1234.56}
fieldProps={{
locale: 'ru-RU',
numberFormatOptions: {
style: 'currency',
currency: 'RUB',
minimumFractionDigits: 0,
},
}}
/>