Skip to content

Commit

Permalink
🔨 fix: getShortDayName with en locale.
Browse files Browse the repository at this point in the history
  • Loading branch information
anuzpandey committed Nov 18, 2023
1 parent f4fb631 commit 01ae1a8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Traits/NepaliDateTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,13 @@ public function getShortDayName(string $npDayName, string $locale = 'np'): strin
{
if ($locale === 'en') {
return match ($npDayName) {
'आइतबार' => 'आइत',
'सोमबार' => 'सोम',
'मङ्गलबार' => 'मङ्गल',
'बुधबार' => 'बुध',
'बिहिबार' => 'बिहि',
'शुक्रबार' => 'शुक्र',
'शनिबार' => 'शनि',
'Sunday' => 'Sun',
'Monday' => 'Mon',
'Tuesday' => 'Tue',
'Wednesday' => 'Wed',
'Thursday' => 'Thu',
'Friday' => 'Fri',
'Saturday' => 'Sat',
};
}

Expand Down

0 comments on commit 01ae1a8

Please sign in to comment.