Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ String format1(Date d) {
return '${f.wN} ${f.d} ${f.mN} ${f.yy}';
}

// example output for Jalali: "پنج شنبه 21 دی 91"
// example output for Jalali: "پنجشنبه 21 دی 91"
// example output for Gregorian: "Thursday 10 January 13"
```

Expand All @@ -282,7 +282,7 @@ String format1Af(Jalali d) {
return '${f.wN} ${f.d} ${f.mNAf} ${f.yy}';
}

// example output: "پنج شنبه 21 جدی 91"
// example output: "پنجشنبه 21 جدی 91"
```

Or if you want to get Jalali formatting in Fingilish use:
Expand Down Expand Up @@ -556,7 +556,7 @@ void main() {
return '${f.wN} ${f.d} ${f.mN} ${f.yy}';
}

print(format1(j1)); // prints: پنج شنبه 21 دی 91
print(format1(j1)); // prints: پنجشنبه 21 دی 91
print(format1(g1)); // prints: Thursday 10 January 13

// for Afghani people:
Expand All @@ -566,7 +566,7 @@ void main() {
return '${f.wN} ${f.d} ${f.mNAf} ${f.yy}';
}

print(format1Af(j1)); // prints: پنج شنبه 21 جدی 91
print(format1Af(j1)); // prints: پنجشنبه 21 جدی 91

// Finglish example:
String format1Fn(Jalali d) {
Expand Down
4 changes: 2 additions & 2 deletions example/shamsi_date_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ void main() {
return '${f.wN} ${f.d} ${f.mN} ${f.yy}';
}

print(format1(j1)); // prints: پنج شنبه 21 دی 91
print(format1(j1)); // prints: پنجشنبه 21 دی 91
print(format1(g1)); // prints: Thursday 10 January 13

// for Afghani people:
Expand All @@ -172,7 +172,7 @@ void main() {
return '${f.wN} ${f.d} ${f.mNAf} ${f.yy}';
}

print(format1Af(j1)); // prints: پنج شنبه 21 جدی 91
print(format1Af(j1)); // prints: پنجشنبه 21 جدی 91

// Finglish example:
String format1Fn(Jalali d) {
Expand Down
10 changes: 5 additions & 5 deletions lib/src/jalali/jalali_formatter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ class JalaliFormatter extends DateFormatter {
/// Jalali week day names
static const List<String> _weekDayNames = [
'شنبه',
'یک شنبه',
'دو شنبه',
'سه شنبه',
'چهار شنبه',
'پنج شنبه',
'یکشنبه',
'دوشنبه',
'سه‌شنبه',
'چهارشنبه',
'پنجشنبه',
'جمعه',
];

Expand Down