mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-23 16:53:50 +02:00
fix i18n
This commit is contained in:
@@ -808,10 +808,24 @@
|
|||||||
showFavoriteDialog('avatar', D.id);
|
showFavoriteDialog('avatar', D.id);
|
||||||
break;
|
break;
|
||||||
default:
|
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
|
modalStore
|
||||||
.confirm({
|
.confirm({
|
||||||
title: 'Confirm',
|
title: t('confirm.title'),
|
||||||
description: `Continue? ${command}`
|
description: t('confirm.command_question', {
|
||||||
|
command: commandLabelMap[command] ?? command
|
||||||
|
})
|
||||||
})
|
})
|
||||||
.then(({ ok }) => {
|
.then(({ ok }) => {
|
||||||
if (!ok) return;
|
if (!ok) return;
|
||||||
|
|||||||
@@ -2388,8 +2388,10 @@
|
|||||||
function resetHome() {
|
function resetHome() {
|
||||||
modalStore
|
modalStore
|
||||||
.confirm({
|
.confirm({
|
||||||
description: 'Continue? Reset Home',
|
description: t('confirm.command_question', {
|
||||||
title: 'Confirm'
|
command: t('dialog.user.actions.reset_home')
|
||||||
|
}),
|
||||||
|
title: t('confirm.title')
|
||||||
})
|
})
|
||||||
.then(({ ok }) => {
|
.then(({ ok }) => {
|
||||||
if (!ok) return;
|
if (!ok) return;
|
||||||
|
|||||||
@@ -1032,12 +1032,21 @@
|
|||||||
case 'Unpublish':
|
case 'Unpublish':
|
||||||
case 'Delete Persistent Data':
|
case 'Delete Persistent Data':
|
||||||
case 'Delete':
|
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
|
modalStore
|
||||||
.confirm({
|
.confirm({
|
||||||
description: t('confirm.command_question', {
|
description: t('confirm.command_question', {
|
||||||
command
|
command: commandLabelMap[command] ?? command
|
||||||
}),
|
}),
|
||||||
title: 'Confirm'
|
title: t('confirm.title')
|
||||||
})
|
})
|
||||||
.then(({ ok }) => {
|
.then(({ ok }) => {
|
||||||
if (!ok) return;
|
if (!ok) return;
|
||||||
|
|||||||
@@ -1041,7 +1041,8 @@
|
|||||||
"unfriend": "Unfriend",
|
"unfriend": "Unfriend",
|
||||||
"unfriend_success_msg": "Unfriended",
|
"unfriend_success_msg": "Unfriended",
|
||||||
"logout": "Logout",
|
"logout": "Logout",
|
||||||
"edit_note_memo": "Edit Note and Memo"
|
"edit_note_memo": "Edit Note and Memo",
|
||||||
|
"reset_home": "Reset Home"
|
||||||
},
|
},
|
||||||
"info": {
|
"info": {
|
||||||
"header": "Info",
|
"header": "Info",
|
||||||
|
|||||||
Reference in New Issue
Block a user