ERPNext is not Validating Numbers entered in different languages

ERP is unable to recognize numbers entered in different languages for example if the site is set to arabic we need to put the numbers in english

as shown in above image whenever we add numbers in arabic

it resets to zero as shown below