diff --git a/src/components/dialogs/AvatarDialog/AvatarDialog.vue b/src/components/dialogs/AvatarDialog/AvatarDialog.vue index 87f50be2..c636e420 100644 --- a/src/components/dialogs/AvatarDialog/AvatarDialog.vue +++ b/src/components/dialogs/AvatarDialog/AvatarDialog.vue @@ -808,10 +808,24 @@ showFavoriteDialog('avatar', D.id); break; default: + const commandLabelMap = { + 'Delete Favorite': t('dialog.avatar.actions.favorite_tooltip'), + 'Select Fallback Avatar': t('dialog.avatar.actions.select_fallback'), + 'Block Avatar': t('dialog.avatar.actions.block'), + 'Unblock Avatar': t('dialog.avatar.actions.unblock'), + 'Make Public': t('dialog.avatar.actions.make_public'), + 'Make Private': t('dialog.avatar.actions.make_private'), + Delete: t('dialog.avatar.actions.delete'), + 'Delete Imposter': t('dialog.avatar.actions.delete_impostor'), + 'Create Imposter': t('dialog.avatar.actions.create_impostor'), + 'Regenerate Imposter': t('dialog.avatar.actions.regenerate_impostor') + }; modalStore .confirm({ - title: 'Confirm', - description: `Continue? ${command}` + title: t('confirm.title'), + description: t('confirm.command_question', { + command: commandLabelMap[command] ?? command + }) }) .then(({ ok }) => { if (!ok) return; diff --git a/src/components/dialogs/UserDialog/UserDialog.vue b/src/components/dialogs/UserDialog/UserDialog.vue index 74617ea5..788ad6b7 100644 --- a/src/components/dialogs/UserDialog/UserDialog.vue +++ b/src/components/dialogs/UserDialog/UserDialog.vue @@ -2388,8 +2388,10 @@ function resetHome() { modalStore .confirm({ - description: 'Continue? Reset Home', - title: 'Confirm' + description: t('confirm.command_question', { + command: t('dialog.user.actions.reset_home') + }), + title: t('confirm.title') }) .then(({ ok }) => { if (!ok) return; diff --git a/src/components/dialogs/WorldDialog/WorldDialog.vue b/src/components/dialogs/WorldDialog/WorldDialog.vue index 34a927ec..ec320176 100644 --- a/src/components/dialogs/WorldDialog/WorldDialog.vue +++ b/src/components/dialogs/WorldDialog/WorldDialog.vue @@ -1032,12 +1032,21 @@ case 'Unpublish': case 'Delete Persistent Data': case 'Delete': + const commandLabelMap = { + 'Delete Favorite': t('dialog.world.actions.favorites_tooltip'), + 'Make Home': t('dialog.world.actions.make_home'), + 'Reset Home': t('dialog.world.actions.reset_home'), + Publish: t('dialog.world.actions.publish_to_labs'), + Unpublish: t('dialog.world.actions.unpublish'), + 'Delete Persistent Data': t('dialog.world.actions.delete_persistent_data'), + Delete: t('dialog.world.actions.delete') + }; modalStore .confirm({ description: t('confirm.command_question', { - command + command: commandLabelMap[command] ?? command }), - title: 'Confirm' + title: t('confirm.title') }) .then(({ ok }) => { if (!ok) return; diff --git a/src/localization/en.json b/src/localization/en.json index a4eb9916..0f1ba219 100644 --- a/src/localization/en.json +++ b/src/localization/en.json @@ -1041,7 +1041,8 @@ "unfriend": "Unfriend", "unfriend_success_msg": "Unfriended", "logout": "Logout", - "edit_note_memo": "Edit Note and Memo" + "edit_note_memo": "Edit Note and Memo", + "reset_home": "Reset Home" }, "info": { "header": "Info",