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 3c52d63 commit 2443a8cCopy full SHA for 2443a8c
packages/localization/src/Filament/Tables/Columns/TranslationColumn.php
@@ -27,7 +27,11 @@ protected function setUp(): void
27
$languageCode = explode('_', $translation->locale)[0];
28
$locale = StaticLanguage::where('alpha2', $languageCode)->first();
29
30
- $flagClass = 'flag-'.strtolower($locale->alpha2);
+ if ($locale) {
31
+ $flagClass = $locale->flag_icon;
32
+ } else {
33
+ $flagClass = 'heroicon-o-flag';
34
+ }
35
36
if ($translation->trashed()) {
37
$flagClass .= ' trashed';
0 commit comments