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,22 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'navigation_group' => 'Products & Services',
|
||||
'menu_label' => 'Categories',
|
||||
'model_label' => 'Category',
|
||||
'plural_model_label' => 'Categories',
|
||||
|
||||
// Form
|
||||
'general_section' => 'General Information',
|
||||
'slug' => 'Slug',
|
||||
'parent_category' => 'Parent Category',
|
||||
'sort_order' => 'Sort Order',
|
||||
'is_active' => 'Active',
|
||||
'translations_section' => 'Translations',
|
||||
|
||||
// Table
|
||||
'title' => 'Title',
|
||||
'parent' => 'Parent Category',
|
||||
'created_at' => 'Created At',
|
||||
];
|
||||
|
||||
@@ -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',
|
||||
];
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'navigation_group' => 'Ürün ve Hizmetler',
|
||||
'menu_label' => 'Kategoriler',
|
||||
'model_label' => 'Kategori',
|
||||
'plural_model_label' => 'Kategoriler',
|
||||
|
||||
// Form
|
||||
'general_section' => 'Genel Bilgiler',
|
||||
'slug' => 'Slug (Bağlantı Yolu)',
|
||||
'parent_category' => 'Üst Kategori',
|
||||
'sort_order' => 'Sıralama',
|
||||
'is_active' => 'Aktif',
|
||||
'translations_section' => 'Çeviriler',
|
||||
|
||||
// Table
|
||||
'title' => 'Başlık',
|
||||
'parent' => 'Üst Kategori',
|
||||
'created_at' => 'Oluşturulma Tarihi',
|
||||
];
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'navigation_group' => 'Ürün ve Hizmetler',
|
||||
'menu_label' => 'Ürün ve Hizmet Listesi',
|
||||
'model_label' => 'Ürün/Hizmet',
|
||||
'plural_model_label' => 'Ürün ve Hizmetler',
|
||||
|
||||
// Form
|
||||
'general_section' => 'Genel Bilgiler',
|
||||
'slug' => 'Slug (Bağlantı Yolu)',
|
||||
'type' => 'Tür',
|
||||
'product' => 'Ürün',
|
||||
'service' => 'Hizmet',
|
||||
'category' => 'Kategori',
|
||||
'hero_image' => 'Kapak Görseli',
|
||||
'view_template' => 'Özel Görünüm Yolu',
|
||||
'view_template_placeholder' => 'örn: front.products.ozel-sayfa',
|
||||
'view_template_helper' => 'Varsayılan şablonu kullanmak için boş bırakın.',
|
||||
'sort_order' => 'Sıralama',
|
||||
'is_active' => 'Aktif',
|
||||
'translations_section' => 'Çeviriler',
|
||||
'content' => 'İçerik',
|
||||
|
||||
// Table
|
||||
'title' => 'Başlık',
|
||||
'created_at' => 'Oluşturulma Tarihi',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user