Implement Localization for Product and ProductCategory Resources: Refactored resource classes and forms to utilize Laravel's localization features, enhancing user experience by providing translated labels and sections. Added English and Turkish language support for product and category management, ensuring consistency across the admin panel.

This commit is contained in:
Ümit Tunç
2025-12-30 22:49:55 +03:00
parent 54944317b3
commit f381caaa39
11 changed files with 160 additions and 27 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
return [
'navigation_group' => 'Products & Services',
'menu_label' => 'Product & Service List',
'model_label' => 'Product/Service',
'plural_model_label' => 'Products & Services',
// Form
'general_section' => 'General Information',
'slug' => 'Slug',
'type' => 'Type',
'product' => 'Product',
'service' => 'Service',
'category' => 'Category',
'hero_image' => 'Hero Image',
'view_template' => 'Custom View Path',
'view_template_placeholder' => 'e.g. front.products.custom-page',
'view_template_helper' => 'Leave empty to use the default landing page.',
'sort_order' => 'Sort Order',
'is_active' => 'Active',
'translations_section' => 'Translations',
'content' => 'Content',
// Table
'title' => 'Title',
'created_at' => 'Created At',
];