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:
@@ -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',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user