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 |
| "One Hundred Twenty-Three" |
Spanish |
| "Ciento VeintitrΓ©s" |
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! π