We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee5acf1 commit 3edad0fCopy full SHA for 3edad0f
packages/data/src/Models/StaticLocale.php
@@ -42,6 +42,13 @@ public function country()
42
43
public function getLanguageFlagIconAttribute(): ?string
44
{
45
+ if ($this->language?->alpha2) {
46
+ return match ($this->language->alpha2) {
47
+ 'ar' => 'flag-ar_arab',
48
+ default => 'flag-'.strtolower($this->language->alpha2),
49
+ };
50
+ }
51
+
52
if (! $this->country?->alpha2) {
53
return null;
54
}
0 commit comments