Add navigation labels and translations for Card and Loan resources
This commit is contained in:
@@ -28,6 +28,21 @@ class CardResource extends Resource
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedCreditCard;
|
||||
|
||||
public static function getNavigationLabel(): string
|
||||
{
|
||||
return __('My cards');
|
||||
}
|
||||
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
return __('Card');
|
||||
}
|
||||
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
return __('Cards');
|
||||
}
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
|
||||
@@ -34,12 +34,12 @@ class LoanResource extends Resource
|
||||
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
return __('Karz');
|
||||
return __('Loan');
|
||||
}
|
||||
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
return __('Karzlar');
|
||||
return __('Loans');
|
||||
}
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
@@ -664,5 +664,7 @@
|
||||
"Card name": "Kartdaky at",
|
||||
"Card month": "Kart aýy",
|
||||
"Card year": "Kart ýyl",
|
||||
"Cards": "Kartlar"
|
||||
"Cards": "Kartlar",
|
||||
"Loans": "Karzlar",
|
||||
"Loan": "Karz"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user