amount-to-words-multilang
Version:
Convert numbers to words in multiple languages (EN, TH, FR, JA, DE, ET, ES, FA, ZH)
24 lines (23 loc) • 719 B
TypeScript
import { LocaleConverter } from '../types';
/**
* Estonian Number to Words Converter
*
* Features:
* - Estonian number system with proper declensions
* - Currency: Euro and sent (euro ja sent)
* - Handles compound numbers and gender agreement
* - Special cases for numbers ending in 1 (üks vs ühe)
* - Proper ordinal and cardinal number forms
*/
export declare class EstonianConverter implements LocaleConverter {
private readonly ones;
private readonly tens;
private readonly scales;
convert(amount: number): string;
private shouldUsePluralCurrency;
private isValidNumber;
private parseAmount;
private convertWholeNumber;
private convertTens;
private convertScale;
}