Wire products and articles to the public API, send guests to the customer portal, and publish sitemap-config for Meshkee nginx. Co-authored-by: Cursor <cursoragent@cursor.com>
6 lines
209 B
TypeScript
6 lines
209 B
TypeScript
const FA_DIGITS = ["۰", "۱", "۲", "۳", "۴", "۵", "۶", "۷", "۸", "۹"];
|
||
|
||
export function toFa(value: number | string): string {
|
||
return String(value).replace(/[0-9]/g, (d) => FA_DIGITS[Number(d)]);
|
||
}
|