Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using arabic #624

Open
MohcineDev opened this issue Nov 23, 2023 · 4 comments
Open

using arabic #624

MohcineDev opened this issue Nov 23, 2023 · 4 comments
Labels
question Further information is requested

Comments

@MohcineDev
Copy link

why don't use Arabic numbers on Local = (ar)

@MohcineDev MohcineDev added the question Further information is requested label Nov 23, 2023
@DenverCoder1
Copy link
Owner

DenverCoder1 commented Nov 23, 2023

It does use numerals from Arabic locale

@MohcineDev
Copy link
Author

but those numbers are not arabic

@J43fura
Copy link

J43fura commented Dec 4, 2023

I think he means Western Arabic numerals with Arabic script

  • Western Arabic numerals as in (0,1,2,3,4,5,6,7,8,9)

As opposed to

  • Eastern Arabic numerals (٠ ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩)

@DenverCoder1
Copy link
Owner

The code currently uses the default PHP NumberFormatter to automatically format the numbers based on the locale passed in the locale parameter. So if locale is set to ar, it will tell PHP to format numbers according to how it determines Arabic formats numbers. There is not currently a way to use the translations without also affecting number formats and default date formats at the same time.

A possible feature idea could be to add parameters for the "number locale", "day of week locale", "date format locale", "translation locale" as necessary and of course the existing locale parameter would set all of them, but the specific parameters could be used to override the locale, for example, number_locale=en to use western style numerals instead of the default Arabic numerals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants