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

Libraries

afaan_oromo_numbers
amharic_numbers
ethio_numbers
The ethio_numbers library provides utility extensions for Arabic numbers convertion to corresponding Amharic, Afaan Oromo and Tigrigna text.
extension/ethio_numbers
tigrigna_numbers