Skip to content

Commit ee5acf1

Browse files
committed
wip
1 parent ea000fe commit ee5acf1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/data/src/Jobs/ImportStaticDataJob.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ public function handle()
3434
'nld' => 'nl',
3535
'ara' => 'ar',
3636
'heb' => 'he',
37-
'mri' => 'nz',
38-
'nzs' => 'nzs',
37+
'mri' => 'mi',
3938
'kon' => 'kg',
4039
'lin' => 'ln',
4140
'smo' => 'sm',

packages/data/src/Models/StaticLocale.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ public function country()
4242

4343
public function getLanguageFlagIconAttribute(): ?string
4444
{
45-
return match ($this->language?->alpha2) {
46-
'ar' => 'flag-ar_arab',
47-
default => 'flag-'.strtolower($this->language->alpha2),
48-
};
45+
if (! $this->country?->alpha2) {
46+
return null;
47+
}
48+
49+
return 'flag-'.strtolower($this->country->alpha2);
4950
}
5051

5152
public function getCountryFlagIconAttribute(): ?string

0 commit comments

Comments
 (0)