mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-25 10:04:54 +08:00
introduce new create_option.label and edit_option.label keys in the translation files En & Ar
This commit is contained in:
@@ -404,6 +404,8 @@ return [
|
||||
|
||||
'create_option' => [
|
||||
|
||||
'label' => 'إضافة',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => 'إضافة',
|
||||
@@ -426,6 +428,8 @@ return [
|
||||
|
||||
'edit_option' => [
|
||||
|
||||
'label' => 'تعديل',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => 'تحرير',
|
||||
|
||||
@@ -408,6 +408,8 @@ return [
|
||||
|
||||
'create_option' => [
|
||||
|
||||
'label' => 'Create',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => 'Create',
|
||||
@@ -430,6 +432,8 @@ return [
|
||||
|
||||
'edit_option' => [
|
||||
|
||||
'label' => 'Edit',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => 'Edit',
|
||||
|
||||
@@ -275,7 +275,7 @@ class Select extends Field implements Contracts\CanDisableOptions, Contracts\Has
|
||||
}
|
||||
|
||||
$action = Action::make($this->getCreateOptionActionName())
|
||||
->label(__('filament-forms::components.select.actions.create_option.modal.heading'))
|
||||
->label(__('filament-forms::components.select.actions.create_option.label'))
|
||||
->form(function (Select $component, Form $form): array | Form | null {
|
||||
return $component->getCreateOptionActionForm($form->model(
|
||||
$component->getRelationship() ? $component->getRelationship()->getModel()::class : null,
|
||||
@@ -430,7 +430,7 @@ class Select extends Field implements Contracts\CanDisableOptions, Contracts\Has
|
||||
}
|
||||
|
||||
$action = Action::make($this->getEditOptionActionName())
|
||||
->label(__('filament-forms::components.select.actions.edit_option.modal.heading'))
|
||||
->label(__('filament-forms::components.select.actions.edit_option.label'))
|
||||
->form(function (Select $component, Form $form): array | Form | null {
|
||||
return $component->getEditOptionActionForm(
|
||||
$form->model($component->getSelectedRecord()),
|
||||
|
||||
Reference in New Issue
Block a user