const EN_TO_FA_DIGITS = ["۰", "۱", "۲", "۳", "۴", "۵", "۶", "۷", "۸", "۹"] as const;

export const toPersianDigits = (value: string): string => {
  return value.replace(/\d/g, (digit) => EN_TO_FA_DIGITS[Number(digit)]);
};
