🌍 Supported Languages

The number2words package supports multiple languages for number conversion. Below is the list of currently supported languages:

βœ… Available Languages

Language

Enum Value

Example Output (123)

English

Number2WordsLanguage.english

"One Hundred Twenty-Three"

Spanish

Number2WordsLanguage.spanish

"Ciento VeintitrΓ©s"

French

Number2WordsLanguage.french

"Cent Vingt-Trois"

Future Works: More languages will be added

🌟 Setting the Language

To specify a language, pass the language parameter:

String result = Number2Words.convert(456, language: Number2WordsLanguage.spanish);
print(result); // Output: "Cuatrocientos Cincuenta y Seis"

πŸ—οΈ Want More Languages?

Help expand language support by contributing! If you’d like to add a new language, check the Contributing section for details.

πŸ”— Next: Explore more Examples to see number2words in action! πŸš€

Updated on