Skip to content

Commit 1ffe066

Browse files
committed
🐛 When modifying a custom model, specifically the configuration of a particular model, the Cancel and Confirm buttons are internationalized #1759
1 parent 1ac2d19 commit 1ffe066

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

frontend/app/[locale]/models/components/model/ModelAddDialog.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,8 @@ export const ModelAddDialog = ({
10931093
open={settingsModalVisible}
10941094
onCancel={() => setSettingsModalVisible(false)}
10951095
onOk={handleSettingsSave}
1096+
cancelText={t("common.cancel")}
1097+
okText={t("common.ok")}
10961098
destroyOnClose
10971099
>
10981100
<div className="space-y-3">

frontend/app/[locale]/models/components/model/ModelDeleteDialog.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,8 @@ export const ModelDeleteDialog = ({
10591059
open={settingsModalVisible}
10601060
onCancel={() => setSettingsModalVisible(false)}
10611061
onOk={handleSettingsSave}
1062+
cancelText={t("common.button.cancel")}
1063+
okText={t("common.button.save")}
10621064
destroyOnClose
10631065
>
10641066
<div className="space-y-3">

0 commit comments

Comments
 (0)