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 ea000fe commit ee5acf1Copy full SHA for ee5acf1
packages/data/src/Jobs/ImportStaticDataJob.php
@@ -34,8 +34,7 @@ public function handle()
34
'nld' => 'nl',
35
'ara' => 'ar',
36
'heb' => 'he',
37
- 'mri' => 'nz',
38
- 'nzs' => 'nzs',
+ 'mri' => 'mi',
39
'kon' => 'kg',
40
'lin' => 'ln',
41
'smo' => 'sm',
packages/data/src/Models/StaticLocale.php
@@ -42,10 +42,11 @@ public function country()
42
43
public function getLanguageFlagIconAttribute(): ?string
44
{
45
- return match ($this->language?->alpha2) {
46
- 'ar' => 'flag-ar_arab',
47
- default => 'flag-'.strtolower($this->language->alpha2),
48
- };
+ if (! $this->country?->alpha2) {
+ return null;
+ }
+
49
+ return 'flag-'.strtolower($this->country->alpha2);
50
}
51
52
public function getCountryFlagIconAttribute(): ?string
0 commit comments