Skip to content

Commit

Permalink
Merge pull request #1763 from clementchong/hotfix_1762
Browse files Browse the repository at this point in the history
Added i18n to viz save confirmation dialog
  • Loading branch information
Cuiyansong authored Jul 28, 2022
2 parents c6d0c6e + 1cf5426 commit 4ab658a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion frontend/src/app/components/ChartEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ export const ChartEditor: FC<ChartEditorProps> = ({
} else {
// dataChart
confirm({
title: '保存修改后不能撤销,确定继续保存吗?',
title: tg('button.saveConfirm'),
icon: <ExclamationCircleOutlined />,
async onOk() {
dispatch(
Expand Down Expand Up @@ -540,6 +540,7 @@ export const ChartEditor: FC<ChartEditorProps> = ({
chartConfig,
dataview?.computedFields,
history,
tg,
]);

const saveChartToDashBoard = useCallback(
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"saveAs": "Save As",
"cancel": "Cancel",
"ok": "OK",
"shortcuts": "Shortcuts"
"shortcuts": "Shortcuts",
"saveConfirm": "After saving the changes, it cannot be undone. Are you sure you want to continue saving?"
},
"operation": {
"archiveConfirm": "Archive confirm",
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/locales/zh/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"saveAs": "另存为",
"cancel": "取消",
"ok": "确定",
"shortcuts": "快捷键"
"shortcuts": "快捷键",
"saveConfirm": "保存修改后不能撤销,确定继续保存吗?"
},
"operation": {
"archiveConfirm": "确定移至回收站?",
Expand Down

0 comments on commit 4ab658a

Please sign in to comment.