Skip to content

Commit 2443a8c

Browse files
committed
use flag_icon insetad of alpha2
1 parent 3c52d63 commit 2443a8c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/localization/src/Filament/Tables/Columns/TranslationColumn.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ protected function setUp(): void
2727
$languageCode = explode('_', $translation->locale)[0];
2828
$locale = StaticLanguage::where('alpha2', $languageCode)->first();
2929

30-
$flagClass = 'flag-'.strtolower($locale->alpha2);
30+
if ($locale) {
31+
$flagClass = $locale->flag_icon;
32+
} else {
33+
$flagClass = 'heroicon-o-flag';
34+
}
3135

3236
if ($translation->trashed()) {
3337
$flagClass .= ' trashed';

0 commit comments

Comments
 (0)