pro-components icon indicating copy to clipboard operation
pro-components copied to clipboard

🐛[BUG] ProFormMoney, locale="ru-RU"

Open karamba-x opened this issue 6 months ago • 0 comments
trafficstars

When using <ProFormMoney locale="ru-RU" />, currency formatting for Russian (ru‑RU) is incorrect:

  1. 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 ₽

  2. 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 ₽

  3. 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,
    },
  }}
/>

karamba-x avatar Apr 24 '25 13:04 karamba-x