ethio_numbers 0.0.5 copy "ethio_numbers: ^0.0.5" to clipboard
ethio_numbers: ^0.0.5 copied to clipboard

package provides a set of extensions for converting numbers to Amharic, Afaan Oromo, and Tigrigna text.

ethio_numbers package provides a set of extensions for converting numbers to Amharic, Afaan Oromo, and Tigrigna text.

Features #

  • Number to Amharic Text.
  • Number to Afaan Oromo Text.
  • Number to Tigrigna Text.
  • Monetize Number to Amharic Text.

Getting started #

you can add the package using the following command

flutter pub add ethio_numbers

or

dart pub add ethio_numbers

Usage #

import 'package:ethio_numbers/ethio_numbers.dart';

convert the number using .toAmharicText() or .toAfaanOromoText() extension.

print(7023.toAmharicText()); //Output: ሰባት ሺ ሀያ ሶስት

print(125.toAfaanOromoText()); //Output:dhibba digdamii shan

print(14000.toTigrigna()); // Output: ዓሰርተ ኣርባዕተ ሽሕ


for double values you can add fractionDigits and monetizeValue named parameter to get additional feature.

double money = 34.50;
money.toAmharicText(monetizeValue: true); //Output: ሰላሳ አራት ብር ከ ሃምሳ ሳንቲም

double n = 524.53523;
n.toAmharicText(); //Output: አምስት መቶ ሃያ አራት ነጥብ አምስት ሶስት አምስት ሁለት ሶስት
n.toAmharicText(fractionDigits: 2); //Output: አምስት መቶ ሃያ አራት ነጥብ አምስት አራት

Contributions #

Contributions to the ethio_numbers are welcomed, If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

Special Thanks 🙏 #

Yordanos Mekonen who helps me on Tigrigna Numbers

8
likes
145
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

package provides a set of extensions for converting numbers to Amharic, Afaan Oromo, and Tigrigna text.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on ethio_numbers