src/lang/fa.js
function toPersianNumber(number) {
  // List of standard persian numbers from 0 to 9
  const persianDigits = ['۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹'];

  return number
    .toString()
    .replace(/\d/g, x => persianDigits[x]);
}
function toPersianNumber(number) {
  // List of standard persian numbers from 0 to 9
  const persianDigits = ['۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹'];

  return number
    .toString()
    .replace(/\d/g, x => persianDigits[x]);
}
function toPersianNumber ( number ) { // List of standard persian numbers from 0 to 9 const persianDigits = [ '۰', ۱',  ' ', ' ۳ , '۴ '  '۵' , '۶', ۷',  ' ', ' ۹ ]; return number . toString ( ) . replace ( / \d / g , x => persianDigits [ x ] ) ; }
As persian language has different number symbols we need to replace regular numbers to standard persian numbres.
As persian language has different number symbols we need to replace regular numbers to standard persian numbres .