From b7092cf9cc98d12fcb9b74900123b48932640e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96zt=C3=BCrk?= Date: Sun, 1 Mar 2026 01:04:48 +0300 Subject: [PATCH] Wizard Language Key ve Text bilgileri eklendi. --- .../ListForms/ListFormWizardAppService.cs | 3 +- .../Seeds/LanguagesData.json | 516 +++++++++++++++++- ui/src/views/admin/listForm/Wizard.tsx | 2 +- ui/src/views/admin/listForm/WizardStep1.tsx | 74 +-- ui/src/views/admin/listForm/WizardStep2.tsx | 80 +-- ui/src/views/admin/listForm/WizardStep3.tsx | 35 +- ui/src/views/admin/listForm/WizardStep4.tsx | 95 ++-- .../admin/role-management/RolesPermission.tsx | 2 +- 8 files changed, 635 insertions(+), 172 deletions(-) diff --git a/api/src/Sozsoft.Platform.Application/ListForms/ListFormWizardAppService.cs b/api/src/Sozsoft.Platform.Application/ListForms/ListFormWizardAppService.cs index 2d78c64..38b43be 100644 --- a/api/src/Sozsoft.Platform.Application/ListForms/ListFormWizardAppService.cs +++ b/api/src/Sozsoft.Platform.Application/ListForms/ListFormWizardAppService.cs @@ -166,6 +166,7 @@ public class ListFormWizardAppService( ColSpan = g.ColCount, ItemType = "group", Items = g.Items + .Where(i => i.DataField != input.KeyFieldName) .Select((it, ii) => new EditingFormItemDto { Order = ii + 1, @@ -230,7 +231,7 @@ public class ListFormWizardAppService( ListFormCode = input.ListFormCode, FieldName = item.DataField, CaptionName = item.DataField, - Visible = true, + Visible = item.DataField != input.KeyFieldName, IsActive = true, ListOrderNo = fieldOrder, SourceDbType = item.DbSourceType, diff --git a/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json b/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json index 46b6f95..0386f95 100644 --- a/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json +++ b/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json @@ -1398,36 +1398,6 @@ "en": "Form Management", "tr": "Form Yönetimi" }, - { - "resourceName": "Platform", - "key": "App.Listforms.Wizard", - "en": "Listform Wizard", - "tr": "Listform Sihirbazı" - }, - { - "resourceName": "Platform", - "key": "ListForms.Wizard.MenuInfo", - "en": "Menu Information", - "tr": "Menü Bilgileri" - }, - { - "resourceName": "Platform", - "key": "ListForms.Wizard.ListFormSettings", - "en": "List Form Settings", - "tr": "Liste Formu Ayarları" - }, - { - "resourceName": "Platform", - "key": "ListForms.Wizard.ListFormFields", - "en": "List Form Fields", - "tr": "Liste Formu Alanları" - }, - { - "resourceName": "Platform", - "key": "ListForms.Wizard.Deploy", - "en": "Deploy", - "tr": "Dağıtım" - }, { "resourceName": "Platform", "key": "App.Listforms.DataSource", @@ -15763,6 +15733,492 @@ "key": "App.Listform.ListformField.ZoneTypeId", "en": "Zone Type", "tr": "Bölge Türü" + }, + { + "resourceName": "Platform", + "key": "App.Listforms.Wizard", + "en": "Listform Wizard", + "tr": "Listform Sihirbazı" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.MenuInfo", + "en": "Menu Information", + "tr": "Menü Bilgileri" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.ListFormSettings", + "en": "List Form Settings", + "tr": "Liste Formu Ayarları" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.ListFormFields", + "en": "List Form Fields", + "tr": "Liste Formu Alanları" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Deploy", + "en": "Deploy", + "tr": "Dağıtım" + }, + { + "resourceName": "Platform", + "key": "App.Listforms.Wizard", + "en": "List Form Wizard", + "tr": "Liste Form Sihirbazı" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.MenuInfo", + "en": "Menu Information", + "tr": "Menü Bilgileri" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.ListFormSettings", + "en": "List Form Settings", + "tr": "Liste Form Ayarları" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.ListFormFields", + "en": "List Form Fields", + "tr": "Liste Form Alanları" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Deploy", + "en": "Deploy", + "tr": "Yayınla" + }, + { + "resourceName": "Platform", + "key": "ListForms.FormBilgileriKaydedildi", + "en": "Form Information Saved", + "tr": "Form Bilgileri Kaydedildi" + }, + { + "resourceName": "Platform", + "key": "Back", + "en": "Back", + "tr": "Geri" + }, + { + "resourceName": "Platform", + "key": "Next", + "en": "Next", + "tr": "İleri" + }, + { + "resourceName": "Platform", + "key": "Helper Codes", + "en": "Helper Codes", + "tr": "Yardımcı Kodlar" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step1.WizardName", + "en": "Wizard Name", + "tr": "Sihirbaz Adı" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step1.MenuParent", + "en": "Menu Parent", + "tr": "Üst Menü" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step1.MenuCode", + "en": "Menu Code", + "tr": "Menü Kodu" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step1.MenuIcon", + "en": "Menu Icon", + "tr": "Menü İkonu" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step1.DisplayNameEnglish", + "en": "Display Name (English)", + "tr": "Görünen Ad (İngilizce)" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step1.DisplayNameTurkish", + "en": "Display Name (Turkish)", + "tr": "Görünen Ad (Türkçe)" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step1.PermissionGroupName", + "en": "Permission Group Name", + "tr": "İzin Grubu Adı" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step1.NoMenusAvailable", + "en": "No menus available", + "tr": "Menü bulunamadı" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step1.AddNewMenu", + "en": "Add New Menu", + "tr": "Yeni Menü Ekle" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step1.ShortName", + "en": "Short Name", + "tr": "Kısa Ad" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step1.Rename", + "en": "Rename", + "tr": "Yeniden Adlandır" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step1.Delete", + "en": "Delete", + "tr": "Sil" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step2.ListFormCode", + "en": "ListForm Code", + "tr": "ListForm Kodu" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step2.DataSourceCode", + "en": "Data Source Code", + "tr": "Veri Kaynağı Kodu" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step2.ConnectionString", + "en": "Connection String", + "tr": "Bağlantı Dizisi" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step2.SelectCommand", + "en": "Select Command", + "tr": "Sorgu Komutu" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step2.KeyFieldName", + "en": "Key Field Name", + "tr": "Anahtar Alan Adı" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step2.IsTenant", + "en": "Is Tenant?", + "tr": "Kiracıya Özgü?" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step2.IsBranch", + "en": "Is Branch?", + "tr": "Şubeye Özgü?" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step2.TitleTextEnglish", + "en": "Title Text (English)", + "tr": "Başlık Metni (İngilizce)" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step2.TitleTextTurkish", + "en": "Title Text (Turkish)", + "tr": "Başlık Metni (Türkçe)" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step2.DescriptionTextEnglish", + "en": "Description Text (English)", + "tr": "Açıklama Metni (İngilizce)" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step2.DescriptionTextTurkish", + "en": "Description Text (Turkish)", + "tr": "Açıklama Metni (Türkçe)" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step2.SelectCommandColumnsHint", + "en": "Columns load after selecting a Select Command", + "tr": "Select Command seçince sütunlar yüklenir" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step3.EditorOptions", + "en": "Editor Options", + "tr": "Editör Seçenekleri" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step3.EditorScript", + "en": "Editor Script", + "tr": "Editör Scripti" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step3.Span", + "en": "Span", + "tr": "Genişlik" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step3.Remove", + "en": "Remove", + "tr": "Kaldır" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.MenuInfo", + "en": "Menu Information", + "tr": "Menü Bilgileri" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.ListFormSettings", + "en": "ListForm Settings", + "tr": "ListForm Ayarları" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.WizardName", + "en": "Wizard Name", + "tr": "Wizard Adı" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.MenuCode", + "en": "Menu Code", + "tr": "Menü Kodu" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.MenuParent", + "en": "Menu Parent", + "tr": "Üst Menü" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.PermissionGroup", + "en": "Permission Group", + "tr": "İzin Grubu" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.Icon", + "en": "Icon", + "tr": "İkon" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.MenuTr", + "en": "Menu (TR)", + "tr": "Menü (TR)" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.MenuEn", + "en": "Menu (EN)", + "tr": "Menü (EN)" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.MenuParentTr", + "en": "Parent Menu (TR)", + "tr": "Üst Menü (TR)" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.MenuParentEn", + "en": "Parent Menu (EN)", + "tr": "Üst Menü (EN)" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.ListFormCode", + "en": "ListForm Code", + "tr": "ListForm Kodu" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.TitleTr", + "en": "Title (TR)", + "tr": "Başlık (TR)" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.TitleEn", + "en": "Title (EN)", + "tr": "Başlık (EN)" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.DescTr", + "en": "Description (TR)", + "tr": "Açıklama (TR)" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.DescEn", + "en": "Description (EN)", + "tr": "Açıklama (EN)" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.DataSource", + "en": "Data Source", + "tr": "Veri Kaynağı" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.ConnectionString", + "en": "Connection String", + "tr": "Bağlantı Dizisi" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.CommandType", + "en": "Command Type", + "tr": "Komut Tipi" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.SelectCommand", + "en": "Select Command", + "tr": "Sorgu Komutu" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.KeyField", + "en": "Key Field", + "tr": "Anahtar Alan" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.KeyFieldType", + "en": "Key Field Type", + "tr": "Anahtar Alan Tipi" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.SelectedColumns", + "en": "Selected Columns", + "tr": "Seçili Sütunlar" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.FormGroups", + "en": "Form Groups", + "tr": "Form Grupları" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.StatGroup", + "en": "Group", + "tr": "Grup" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.StatField", + "en": "Field", + "tr": "Alan" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.StatColumn", + "en": "Column", + "tr": "Sütun" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.DeployLog", + "en": "Deploy Log", + "tr": "Deploy Günlüğü" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.DeployStartHint", + "en": "Click the button to start deploy.", + "tr": "Deploy başlatmak için butona tıklayın." + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.DeploySuccess", + "en": "ListForm successfully created and deployed!", + "tr": "ListForm başarıyla oluşturuldu ve deploy edildi!" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.Log.ValidatingConfig", + "en": "Validating configuration…", + "tr": "Konfigürasyon doğrulanıyor…" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.Log.CreatingMenu", + "en": "Creating menu: {0}", + "tr": "Menü oluşturuluyor: {0}" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.Log.SavingLanguageTexts", + "en": "Saving language texts", + "tr": "Dil metinleri kaydediliyor" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.Log.ConfiguringPermission", + "en": "Configuring permission group: {0}", + "tr": "İzin grubu yapılandırılıyor: {0}" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.Log.ConnectingDataSource", + "en": "Connecting data source: {0}", + "tr": "Veri kaynağı bağlanıyor: {0}" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.Log.CreatingListForm", + "en": "Creating ListForm: {0}", + "tr": "ListForm oluşturuluyor: {0}" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.Log.SavingFormGroups", + "en": "Saving form groups ({0} groups, {1} fields)", + "tr": "Form grupları kaydediliyor ({0} grup, {1} alan)" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.Log.Deploying", + "en": "Deploying to server…", + "tr": "Sunucuya deploy ediliyor…" + }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step4.Log.Completed", + "en": "Completed ✓", + "tr": "Tamamlandı ✓" } ] } \ No newline at end of file diff --git a/ui/src/views/admin/listForm/Wizard.tsx b/ui/src/views/admin/listForm/Wizard.tsx index c13c880..8a88098 100644 --- a/ui/src/views/admin/listForm/Wizard.tsx +++ b/ui/src/views/admin/listForm/Wizard.tsx @@ -1,4 +1,4 @@ -import { Button, FormContainer, Notification, Steps, toast } from '@/components/ui' +import { FormContainer, Notification, Steps, toast } from '@/components/ui' import { ROUTES_ENUM } from '@/routes/route.constant' import { ListFormWizardDto } from '@/proxy/admin/list-form/models' import { SelectBoxOption } from '@/types/shared' diff --git a/ui/src/views/admin/listForm/WizardStep1.tsx b/ui/src/views/admin/listForm/WizardStep1.tsx index ace7380..cdfd100 100644 --- a/ui/src/views/admin/listForm/WizardStep1.tsx +++ b/ui/src/views/admin/listForm/WizardStep1.tsx @@ -205,7 +205,7 @@ function TreeNode({ @@ -736,11 +738,11 @@ const WizardStep1 = ({ const [menuDialogInitialOrder, setMenuDialogInitialOrder] = useState(999) const step1Missing = [ - !wizardName && 'Wizard Adı', - !values.menuParentCode && 'Menu Parent', - !values.permissionGroupName && 'İzin Grubu', - !values.languageTextMenuEn && 'Menü (EN)', - !values.languageTextMenuTr && 'Menü (TR)', + !wizardName && translate('::ListForms.Wizard.Step1.WizardName'), + !values.menuParentCode && translate('::ListForms.Wizard.Step1.MenuParent'), + !values.permissionGroupName && translate('::ListForms.Wizard.Step1.PermissionGroupName'), + !values.languageTextMenuEn && translate('::ListForms.Wizard.Step4.MenuEn'), + !values.languageTextMenuTr && translate('::ListForms.Wizard.Step4.MenuTr'), ].filter(Boolean) as string[] const step1CanGo = step1Missing.length === 0 @@ -748,11 +750,11 @@ const WizardStep1 = ({
{/* Wizard Name */} - Used to generate ListForm Code and Menu Code + {translate('::ListForms.Wizard.Step1.WizardNameHint') || 'Used to generate ListForm Code and Menu Code'} } > @@ -772,7 +774,7 @@ const WizardStep1 = ({
{/* Menu Parent */} - Ekle + {translate('::ListForms.Wizard.Add') || 'Ekle'} {values.menuParentCode && ( )}
@@ -839,11 +841,11 @@ const WizardStep1 = ({
{/* Menu Code */} Auto-derived, editable} + extra={{translate('::ListForms.Wizard.Step1.MenuCodeHint') || 'Auto-derived, editable'}} > {/* Menu Text (Tr) */} {/* Permission Group Name */} {!step1CanGo && ( - ⚠ Zorunlu: {step1Missing.join(', ')} + ⚠ {translate('::ListForms.Wizard.Required') || 'Zorunlu'}: {step1Missing.join(', ')} )}
diff --git a/ui/src/views/admin/listForm/WizardStep2.tsx b/ui/src/views/admin/listForm/WizardStep2.tsx index f1936df..a745694 100644 --- a/ui/src/views/admin/listForm/WizardStep2.tsx +++ b/ui/src/views/admin/listForm/WizardStep2.tsx @@ -62,15 +62,15 @@ const WizardStep2 = ({ onNext, }: WizardStep2Props) => { const step2Missing = [ - !values.listFormCode && 'ListForm Code', - !values.dataSourceCode && 'Veri Kaynağı', - !values.selectCommand && 'Select Command', - !values.keyFieldName && 'Key Field', - !values.languageTextDescEn && 'Description Text (En)', - !values.languageTextDescTr && 'Description Text (Tr)', - !values.languageTextTitleEn && 'Title Text (En)', - !values.languageTextTitleTr && 'Title Text (Tr)', - selectedColumns.size === 0 && 'Sütun seçimi', + !values.listFormCode && translate('::ListForms.Wizard.Step2.ListFormCode'), + !values.dataSourceCode && translate('::ListForms.Wizard.Step4.DataSource'), + !values.selectCommand && translate('::ListForms.Wizard.Step2.SelectCommand'), + !values.keyFieldName && translate('::ListForms.Wizard.Step4.KeyField'), + !values.languageTextDescEn && translate('::ListForms.Wizard.Step2.DescriptionTextEnglish'), + !values.languageTextDescTr && translate('::ListForms.Wizard.Step2.DescriptionTextTurkish'), + !values.languageTextTitleEn && translate('::ListForms.Wizard.Step2.TitleTextEnglish'), + !values.languageTextTitleTr && translate('::ListForms.Wizard.Step2.TitleTextTurkish'), + selectedColumns.size === 0 && (translate('::ListForms.Wizard.Step2.ColumnSelection') || 'Sütun seçimi'), ].filter(Boolean) as string[] const step2CanGo = step2Missing.length === 0 @@ -79,13 +79,13 @@ const WizardStep2 = ({ {/* ListForm Code + Data Source */}
- Auto-derived from Wizard Name, editable + {translate('::ListForms.Wizard.Step2.ListFormCodeHint') || 'Auto-derived from Wizard Name, editable'} } > @@ -100,7 +100,7 @@ const WizardStep2 = ({ @@ -145,7 +145,7 @@ const WizardStep2 = ({ type="text" autoComplete="off" name="dataSourceConnectionString" - placeholder="Connection String" + placeholder={translate('::ListForms.Wizard.Step2.ConnectionString')} component={Input} /> @@ -155,7 +155,7 @@ const WizardStep2 = ({ {/* Select Command + Key Field Name */}
({ label: t.tableName, value: t.tableName, @@ -184,7 +184,7 @@ const WizardStep2 = ({ })), }, { - label: 'Stored Procedures', + label: translate('::ListForms.Wizard.Step2.StoredProcedures') || 'Stored Procedures', options: dbObjects.storedProcedures.map((p) => ({ label: p.procedureName, value: p.procedureName, @@ -194,7 +194,7 @@ const WizardStep2 = ({ })), }, { - label: 'Views', + label: translate('::ListForms.Wizard.Step2.Views') || 'Views', options: dbObjects.views.map((v) => ({ label: v.viewName, value: v.viewName, @@ -204,7 +204,7 @@ const WizardStep2 = ({ })), }, { - label: 'Functions', + label: translate('::ListForms.Wizard.Step2.Functions') || 'Functions', options: dbObjects.functions.map((f) => ({ label: f.functionName, value: f.functionName, @@ -222,7 +222,7 @@ const WizardStep2 = ({ isClearable isLoading={isLoadingDbObjects} options={grouped} - placeholder={isLoadingDbObjects ? 'Loading…' : 'Tablo/View/SP seç veya SQL yaz…'} + placeholder={isLoadingDbObjects ? (translate('::ListForms.Wizard.Step2.Loading') || 'Loading…') : (translate('::ListForms.Wizard.Step2.SelectCommandPlaceholder') || 'Tablo/View/SP seç veya SQL yaz…')} value={field.value ? { label: field.value, value: field.value } : null} onChange={(option: any) => { if (!option) { @@ -257,7 +257,7 @@ const WizardStep2 = ({ ) : selectCommandColumns.length === 0 && !isLoadingColumns ? ( - Select Command seçince sütunlar yüklenir + {translate('::ListForms.Wizard.Step2.SelectCommandColumnsHint')} ) : null } @@ -282,7 +282,7 @@ const WizardStep2 = ({ form={form} isClearable isLoading={isLoadingColumns} - placeholder={isLoadingColumns ? 'Sütunlar yükleniyor…' : 'Key sütunu seç…'} + placeholder={isLoadingColumns ? (translate('::ListForms.Wizard.Step2.ColumnsLoading') || 'Sütunlar yükleniyor…') : (translate('::ListForms.Wizard.Step2.SelectKeyColumn') || 'Key sütunu seç…')} options={selectCommandColumns.map((c) => ({ label: `${c.columnName} (${c.dataType})`, value: c.columnName, @@ -311,7 +311,7 @@ const WizardStep2 = ({ @@ -324,7 +324,7 @@ const WizardStep2 = ({ @@ -339,7 +339,7 @@ const WizardStep2 = ({
@@ -401,7 +401,7 @@ const WizardStep2 = ({ {/* Column Selection Panel */} 0 ? (
@@ -410,17 +410,17 @@ const WizardStep2 = ({ onClick={() => onToggleAllColumns(true)} className="text-xs px-2 py-0.5 rounded bg-indigo-500 text-white hover:bg-indigo-600" > - Tümünü Seç + {translate('::ListForms.Wizard.Step2.SelectAll') || 'Tümünü Seç'} - {selectedColumns.size}/{selectCommandColumns.length} sütun + {selectedColumns.size}/{selectCommandColumns.length} {translate('::ListForms.Wizard.Step4.StatColumn')}
) : null @@ -428,10 +428,10 @@ const WizardStep2 = ({ >
{isLoadingColumns ? ( -
Sütunlar yükleniyor…
+
{translate('::ListForms.Wizard.Step2.ColumnsLoading') || 'Sütunlar yükleniyor…'}
) : selectCommandColumns.length === 0 ? (
- Select Command seçilince sütunlar burada görünecek + {translate('::ListForms.Wizard.Step2.ColumnsWillAppear') || 'Select Command seçilince sütunlar burada görünecek'}
) : (
diff --git a/ui/src/views/admin/listForm/WizardStep3.tsx b/ui/src/views/admin/listForm/WizardStep3.tsx index fe75092..35b17d2 100644 --- a/ui/src/views/admin/listForm/WizardStep3.tsx +++ b/ui/src/views/admin/listForm/WizardStep3.tsx @@ -1,4 +1,5 @@ import { Button, Dialog } from '@/components/ui' +import { useLocalization } from '@/utils/hooks/useLocalization' import { columnEditorTypeListOptions } from '@/views/admin/listForm/edit/options' import type { DatabaseColumnDto } from '@/proxy/sql-query-manager/models' import { @@ -140,6 +141,7 @@ function SortableItem({ onRequiredChange, onRemove, }: SortableItemProps) { + const { translate } = useLocalization() const { attributes, listeners, setNodeRef, transform, transition, isDragging } = useSortable({ id: `${ITM_PREFIX}${item.id}`, }) @@ -177,7 +179,7 @@ function SortableItem({ type="button" onClick={onRemove} className="opacity-0 group-hover/item:opacity-100 p-0.5 text-gray-300 hover:text-red-500 shrink-0 transition-opacity" - title="Remove" + title={translate('::ListForms.Wizard.Step3.Remove')} > @@ -198,7 +200,7 @@ function SortableItem({ {/* Editor Options */}
- Editor Options + {translate('::ListForms.Wizard.Step3.EditorOptions')}