Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update persian.dart #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions lib/src/languages/persian.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ class Persian implements Language {
@override
bool shortForm;

Persian({this.shortForm = false});
English({this.shortForm = false});

@override
String seconds(int seconds) =>
shortForm ? '$seconds ثانیه' : '$seconds ثانیه';
shortForm ? '$seconds sec' : '$seconds ثانیه';
@override
String aboutASecond(int seconds) => shortForm ? '۱ ث' : '۱ ثانیه';
@override
Expand All @@ -18,27 +18,28 @@ class Persian implements Language {
@override
String suffixAgo() => shortForm ? '' : 'پیش';
@override
String suffixFromNow() => 'بعد';
String suffixFromNow() => shortForm ? '' : 'از آلان';
@override
String lessThanOneMinute(int seconds) => 'چند لحظه';
String lessThanOneMinute(int seconds) => shortForm ? 'الان' : 'چند لحظه';
@override
String aboutAMinute(int minutes) => shortForm ? '۱ د' : '۱ دقیقه';
String aboutAMinute(int minutes) => shortForm ? '۱ دقیقه' : 'دقیقه';
@override
String minutes(int minutes) => shortForm ? '$minutes د' : '$minutes دقیقه';
String minutes(int minutes) =>
shortForm ? '$minutes دقیقه' : '$minutes دقیقه';
@override
String aboutAnHour(int minutes) => shortForm ? '~۱ س' : 'نزدیک به یک‌ساعت';
String aboutAnHour(int minutes) => shortForm ? '~۱ س' : 'حدود یک ساعت';
@override
String hours(int hours) => shortForm ? '$hours س' : '$hours ساعت';
@override
String aDay(int hours) => shortForm ? '1 روز' : 'یک روز';
String aDay(int hours) => shortForm ? '~1 ر' : 'یک روز';
@override
String days(int days) => shortForm ? '$days ر' : '$days روز';
@override
String aboutAMonth(int days) => shortForm ? '~1 م' : 'یک ماه';
@override
String months(int months) => shortForm ? '$months م' : '$months ماه';
@override
String aboutAYear(int year) => shortForm ? '~۱ سال' : 'یک سال';
String aboutAYear(int year) => shortForm ? '~۱ سال' : 'حدود یک سال';
@override
String years(int years) => shortForm ? '$years سال' : '$years سال';
@override
Expand Down