I convert english numbers to arabic numbers with this function :
export const e2p = (num) => { return num.replace(/\\d/g, (d) => \'۰۱۲۳۴۵۶۷۸۹\'[d]);