Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/ar/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

return [

'no' => 'لا',
'sections' => [
'catalog' => 'الكتالوج',
'sales' => 'المبيعات',
'reports' => 'التقارير',
'settings' => 'الإعدادات',
],
'yes' => 'نعم',

];
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/bg/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

return [

'no' => 'Не',
'sections' => [
'catalog' => 'Каталог',
'sales' => 'Продажби',
'reports' => 'Отчети',
'settings' => 'Настройки',
],
'yes' => 'Да',

];
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/de/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

return [

'no' => 'Nein',
'sections' => [
'catalog' => 'Katalog',
'sales' => 'Verkauf',
'reports' => 'Berichte',
'settings' => 'Einstellungen',
],
'yes' => 'Ja',

];
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/en/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

return [

'no' => 'No',
'sections' => [
'catalog' => 'Catalog',
'sales' => 'Sales',
'reports' => 'Reports',
'settings' => 'Settings',
],
'yes' => 'Yes',

];
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/es/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

return [

'no' => 'No',
'sections' => [
'catalog' => 'Catálogo',
'sales' => 'Ventas',
'reports' => 'Informes',
'settings' => 'Configuraciones',
],
'yes' => 'Sí',

];
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/fa/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

return [

'no' => 'خیر',
'sections' => [
'catalog' => 'Catalog',
'sales' => 'Sales',
'reports' => 'Reports',
'settings' => 'Settings',
],
'yes' => 'بله',

];
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/fr/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

return [

'no' => 'Non',
'sections' => [
'catalog' => 'Catalogue',
'sales' => 'Ventes',
'reports' => 'Rapports',
'settings' => 'Paramètres',
],
'yes' => 'Oui',

];
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/hr/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

return [

'no' => 'Ne',
'sections' => [
'catalog' => 'Katalog',
'sales' => 'Prodaja',
'reports' => 'Izvještaji',
'settings' => 'Postavke',
],
'yes' => 'Da',

];
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/hu/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

return [

'no' => 'Nem',
'sections' => [
'catalog' => 'Katalógus',
'sales' => 'Eladások',
'reports' => 'Jelentések',
'settings' => 'Beállítások',
],
'yes' => 'Igen',

];
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/mn/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

return [

'no' => 'Үгүй',
'sections' => [
'catalog' => 'Каталог',
'sales' => 'Борлуулалт',
'reports' => 'Тайлан',
'settings' => 'Тохиргоо',
],
'yes' => 'Тийм',

];
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/nl/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

return [

'no' => 'Nee',
'sections' => [
'catalog' => 'Catalogus',
'sales' => 'Verkoop',
'reports' => 'Rapporten',
'settings' => 'Instellingen',
],
'yes' => 'Ja',

];
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/pl/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

return [

'no' => 'Nie',
'sections' => [
'catalog' => 'Katalog',
'sales' => 'Sprzedaż',
'reports' => 'Raporty',
'settings' => 'Ustawienia',
],
'yes' => 'Tak',

];
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/pt_BR/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

return [

'no' => 'Não',
'sections' => [
'catalog' => 'Catálogo',
'sales' => 'Vendas',
'reports' => 'Relatórios',
'settings' => 'Configurações',
],
'yes' => 'Sim',

];
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/ro/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

return [

'no' => 'Nu',
'sections' => [
'catalog' => 'Catalog',
'sales' => 'Vânzări',
'reports' => 'Rapoarte',
'settings' => 'Setări',
],
'yes' => 'Da',

];
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/tr/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

return [

'no' => 'Hayır',
'sections' => [
'catalog' => 'Katalog',
'sales' => 'Satışlar',
'reports' => 'Raporlar',
'settings' => 'Ayarlar',
],
'yes' => 'Evet',

];
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/vi/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

return [

'no' => 'Không',
'sections' => [
'catalog' => 'Danh mục',
'sales' => 'Bán hàng',
'reports' => 'Báo cáo',
'settings' => 'Cài đặt',
],
'yes' => 'Có',

];
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,16 @@ public static function getDefaultAdditionalInfoSection(): Section
return KeyValueEntry::make('meta_'.$key)->getStateUsing(fn () => $value);
}

// Format boolean values as yes/no
if (is_bool($value) || $value === 0 || $value === 1 || $value === '0' || $value === '1') {
$boolValue = filter_var($value, FILTER_VALIDATE_BOOLEAN);
$formattedValue = $boolValue ? __('lunarpanel::global.yes') : __('lunarpanel::global.no');

return TextEntry::make('meta_'.$key)
->state($formattedValue)
->label(__($key));
}

return TextEntry::make('meta_'.$key)
->getStateUsing(fn () => $value)
->label($key)
Expand Down