mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-27 18:53:47 +02:00
improve i18n
This commit is contained in:
@@ -91,8 +91,9 @@
|
||||
})
|
||||
.then((args) => {
|
||||
if (args.json[slot].message === I.messageSlot.message) {
|
||||
toast.error("VRChat API didn't update message, try again");
|
||||
throw new Error("VRChat API didn't update message, try again");
|
||||
const errorMessage = t('message.invite.message_update_failed');
|
||||
toast.error(errorMessage);
|
||||
throw new Error(errorMessage);
|
||||
} else {
|
||||
toast('Invite message updated');
|
||||
}
|
||||
@@ -141,7 +142,7 @@
|
||||
} else {
|
||||
J.loading = false;
|
||||
J.visible = false;
|
||||
toast.success('Invite sent');
|
||||
toast.success(t('message.invite.sent'));
|
||||
}
|
||||
};
|
||||
inviteLoop();
|
||||
|
||||
@@ -244,7 +244,7 @@
|
||||
function sendInvite() {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: 'Continue? Invite',
|
||||
description: t('confirm.invite'),
|
||||
title: 'Confirm'
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
@@ -281,7 +281,7 @@
|
||||
} else {
|
||||
D.loading = false;
|
||||
D.visible = false;
|
||||
toast.success('Invite sent');
|
||||
toast.success(t('message.invite.sent'));
|
||||
}
|
||||
};
|
||||
inviteLoop();
|
||||
|
||||
@@ -273,7 +273,7 @@
|
||||
function sendGroupInvite() {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: 'Continue? Invite User(s) To Group',
|
||||
description: t('confirm.invite_group'),
|
||||
title: 'Confirm'
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
|
||||
@@ -309,7 +309,7 @@
|
||||
shortName
|
||||
})
|
||||
.then((args) => {
|
||||
toast.success('Self invite sent');
|
||||
toast.success(t('message.invite.self_sent'));
|
||||
return args;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -916,7 +916,7 @@
|
||||
worldId: L.worldId
|
||||
})
|
||||
.then((args) => {
|
||||
toast.success('Self invite sent');
|
||||
toast.success(t('message.invite.self_sent'));
|
||||
return args;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1854,7 +1854,7 @@
|
||||
D.id
|
||||
)
|
||||
.then((_args) => {
|
||||
toast('Invite sent');
|
||||
toast(t('message.invite.sent'));
|
||||
return _args;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -975,7 +975,9 @@
|
||||
case 'Trash2':
|
||||
modalStore
|
||||
.confirm({
|
||||
description: `Continue? ${command}`,
|
||||
description: t('confirm.command_question', {
|
||||
command
|
||||
}),
|
||||
title: 'Confirm'
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
|
||||
Reference in New Issue
Block a user