vue-i18n icon indicating copy to clipboard operation
vue-i18n copied to clipboard

Plural counter interpolation does not respect locale's numeral system

Open ashour opened this issue 3 years ago • 0 comments
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

Screen Shot 2022-07-29 at 1 43 39 PM

Additional context

No response

Validations

ashour avatar Jul 29 '22 12:07 ashour