number_translator

Last updated:

0 purchases

number_translator Image
number_translator Images
Add to Cart

Description:

number translator

Number Translator #
Number Translation is a Dart package designed to facilitate the conversion of numbers between different languages. It provides methods to translate numbers from English to various languages and vice versa.
Installation #
Add the following line to your pubspec.yaml:
dependencies:
number_translator: ^1.0.0
copied to clipboard
Then run:
$ flutter pub get
copied to clipboard
Usage #
Import the package #
import 'package:number_translator/number_translator.dart';
copied to clipboard
Translate Numbers #
From English:
String translatedNumber = NumberTranslator().fromEn('123', toLanguage: 'bn');
print(translatedNumber); // Output: '১২৩'

copied to clipboard
To English:
String translatedNumber = NumberTranslator().toEn('১২৩');
print(translatedNumber); // Output: '123'
copied to clipboard
Supported Languages #

English ('en')
Arabic ('ar')
Bangla ('bn')
Hindi ('hi')
Chinese ('zh')

Contributing #
Contributions are welcome! If you find any issues or want to improve the package, feel free to open a pull request.
License #
This project is licensed under the MIT License - see the LICENSE file for details.
Copyright (c) 2024 Tahmeedul Islam

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.