v2.0.0
persian
波斯语语言和文化相关的实用工具和人性化处理。包含一些字符串扩展和 PersianDate 类。
45喜欢 55近 30 天下载160Pub 分数
AndroidiOSWebmacOSWindowsLinux
Dart 和 Flutter 的波斯语工具。
以下为英文项目原文快照,最新内容请访问 GitHub。
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 صد و بیست و سه میلیون و چهارصد و پنجاه و شش هزار و هفتصد و هشتاد و نه
先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗