amount-to-words-multilang
Version:
Convert numbers to words in multiple languages (EN, TH, FR, JA, DE, ET, ES, FA, ZH)
25 lines (24 loc) • 722 B
TypeScript
import { LocaleConverter } from '../types';
/**
* Persian (Farsi) Number to Words Converter
*
* Features:
* - Persian number system with proper script
* - Currency: Euro and سنت (euro and sent)
* - Right-to-left reading support
* - Persian digits and compound number formation
* - Handles traditional Persian number naming
*/
export declare class PersianConverter implements LocaleConverter {
private readonly ones;
private readonly tens;
private readonly hundreds;
private readonly scales;
convert(amount: number): string;
private isValidNumber;
private parseAmount;
private convertWholeNumber;
private convertTens;
private convertHundreds;
private convertScale;
}