Skip to content

Commit 0fbf3d6

Browse files
committed
wip
1 parent bb8cecd commit 0fbf3d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/data/src/Models/StaticCountry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@ public function timezones()
7171

7272
public function getFlagIconAttribute(): ?string
7373
{
74-
return "flag-{$this->alpha2}";
74+
return 'flag-'.strtolower($this->alpha2);
7575
}
7676
}

packages/data/src/Models/StaticLocale.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ public function getLanguageFlagIconAttribute(): ?string
4343
{
4444
return match ($this->language?->alpha2) {
4545
'ar' => 'flag-ar_arab',
46-
default => "flag-{$this->language?->alpha2}",
46+
default => 'flag-'.strtolower($this->language?->alpha2),
4747
};
4848
}
4949

5050
public function getCountryFlagIconAttribute(): ?string
5151
{
52-
return "flag-{$this->country?->alpha2}";
52+
return 'flag-'.strtolower($this->country?->alpha2);
5353
}
5454
}

0 commit comments

Comments
 (0)