v2.0.0
persian
Utilities and Humanizer for Persian language and culture. Includes some String extensions and PersianDate class.
45Likes 5530-day downloads160Pub points
AndroidiOSWebmacOSWindowsLinux
Persian utilities for Dart and Flutter.
English project snapshot. Visit GitHub for the latest content.
Utilities and Humanizer for Persian language and culture.
PersianDate class which converts a DateTime to Jalali date.ي with ی and ك with ک.In your pubspec.yaml file add:
dependencies:
persian: any
Import the package:
import 'package:persian/persian.dart';
Then, use the extension methods:
String myText = '123456789';
String myPersianText = myText.withPersianNumbers(); //Will be ۱۲۳۴۵۶۷۸۹
DateTime myDate = DateTime.now();
PersianDate myPersianDate = myDate.toPersian(); //Will be 1398/10/19
int number = 123456789;
String myPersianNumber = number.toPersianString(); //Will be صد و بیست و سه میلیون و چهارصد و پنجاه و شش هزار و هفتصد و هشتاد و نه
Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗