Closed HZahour closed 8 months ago
Hello,
This is already supported using altNumbers
(available as option of forHumans
and diffForHumans
):
For instance 2 years
:
echo CarbonInterval::years(2)->locale('bn_BD')->forHumans(['altNumbers' => true]);
The translation tool is not using alternative numbers because in some languages it's actually available but not that common to use them.
You can check the list of alternative numbers for Bengali here: https://github.com/briannesbitt/Carbon/blob/master/src/Carbon/Lang/bn.php#L99
The numbers in Bengali for the country Bangladesh and India both are following, 0 = ০, 1 = ১, 2 = ২, 3 = ৩, 4 = ৪, 5 = ৫, 6 = ৬, 7 = ৭, 8 = ৮, 9 = ৯
Please note that '4 = ৪' it looks like English number 8 (eight), but it is different.