Search code examples
translationsymfony4

Symfony 5 : translate Arabic numbers to Modern numbers


I use Symfony 5, and I checked Arabic like the default language of the website.

but when I write a number on the database and get it, the Symfony translate it automatically to Arabic numbers ( from [1,2,3,4,5,6,7,8,9] to [١,٢,٣,٤,٥,٦,٧,٨,٩] ).

is there any solution to use modern numbers in place of Arabic numbers ?


Solution

  • After a lot of searches and analyzing I found that issue come from the NumberType input, so I changed to the TextType input