amount-to-words-multilang
Version:
Convert numbers to words in multiple languages (EN, TH, FR, JA, DE, ET, ES, FA, ZH)
28 lines (27 loc) • 836 B
TypeScript
import { LocaleConverter } from '../types';
/**
* Spanish Number to Words Converter
*
* Features:
* - Spanish number system with proper gender agreement
* - Currency: Euro and céntimos
* - Handles masculine/feminine forms (uno/una, dos/dos)
* - Special cases for 100 (cien vs ciento)
* - Proper compound number formation
* - Regional variations handled (standard Spanish)
*/
export declare class SpanishConverter implements LocaleConverter {
private readonly ones;
private readonly onesFeminine;
private readonly tens;
private readonly twenties;
private readonly hundreds;
private readonly scales;
convert(amount: number): string;
private isValidNumber;
private parseAmount;
private convertWholeNumber;
private convertTens;
private convertHundreds;
private convertScale;
}