F
Filament15mo ago
Hdev

Arabic number translation

Hello , i'm using Arabic in the admin panel but the numbers also changed to Arabic format, but i don't want that. please how i can make the numbers still in the normal English format? Thank you.
No description
9 Replies
Vp
Vp15mo ago
Publish arablic translation and edit accordingly
Hdev
HdevOP15mo ago
i published the translations but i didn't find the numbers !!!
awcodes
awcodes15mo ago
This isn’t something to do with Filament. You’re going to need a way to do this at the laravel level since that’s where the translations happen.
azog
azog15mo ago
is there a way to override this Filament helper function? (filament/packages/support/src/helpers.php)
No description
Lara Zeus
Lara Zeus15mo ago
change the font use a font that provide english numbers you can search in google fonts for many alternatives if the reason is the same as the OP just try to change the font ya sorry did some test and format_number dose overwite the fonts too
azog
azog14mo ago
@Lara Zeus Thank you for your help; is there any way to edit this option from a predefined Filament function?
Lara Zeus
Lara Zeus14mo ago
dont know a direct way, sorry didnt have the time to propose a PR yet, will try soon
Sdeev
Sdeev14mo ago
@Hdev did find any solution ?
MustafaKH Hamad
MustafaKH Hamad2mo ago
I solved it by removing ->numeric() of the tables And for the summerey( I used ->money ('IQD', locally : 'en'))

Did you find this page helpful?