vue-i18n
vue-i18n copied to clipboard
Plural counter interpolation does not respect locale's numeral system
trafficstars
Reporting a bug?
When formatting a plural message with $tc() the interpolated {n} or {count} value is always displayed in the Western Arabic numeral system (1, 2, 3). Different locales use different numeral systems. For example, Arabic uses the Eastern Arabic numeral system (١، ٢، ٣).
In contrast, $n() and $d() correctly display numbers in the active locale's numeral system.
Expected behavior
Consistent use of the same numeral system across a locale, including plurals, numbers, and dates. Ideally this would use the locale's official numeral system.
Reproduction
https://codesandbox.io/s/vue-i18n-9-numeral-systems-3lbt0r?file=/index.html
System Info
Using Vue 3.x and Vue I18n 9.x
Please see Code Sandbox linked above for more details.
Screenshot
Additional context
No response
Validations
- [X] Read the Contributing Guidelines
- [X] Read the Documentation
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion
- [X] The provided reproduction is a minimal reproducible example of the bug.