introduce new create_option.label and edit_option.label keys in the translation files En & Ar

This commit is contained in:
A909M
2024-12-05 00:09:38 +03:00
parent 9f6690c67e
commit b23edddef7
3 changed files with 10 additions and 2 deletions
@@ -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',
+2 -2
View File
@@ -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()),