ant-design / ant-design/pro-components

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

Open
#9,090 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

When using , 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:

```tsx

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the ProFormMoney example using locale="ru-RU" and the supplied numberFormatOptions. Trace ProFormMoney's currency-formatting entry point and verify the fix against the stated ruble placement, narrow non-breaking-space grouping, and fraction-digit behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.