mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-29 19:53:47 +02:00
improve i18n
This commit is contained in:
@@ -151,7 +151,7 @@
|
||||
function deleteFriendLogPrompt(row) {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: 'Continue? Delete Log',
|
||||
description: t('confirm.delete_log'),
|
||||
title: 'Confirm'
|
||||
})
|
||||
.then(({ ok }) => ok && deleteFriendLog(row))
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
function deleteGameLogEntryPrompt(row) {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: 'Continue? Delete Log',
|
||||
description: t('confirm.delete_log'),
|
||||
title: 'Confirm'
|
||||
})
|
||||
.then(({ ok }) => ok && deleteGameLogEntry(row))
|
||||
|
||||
@@ -324,7 +324,7 @@
|
||||
// FIXME: 메시지 수정
|
||||
modalStore
|
||||
.confirm({
|
||||
description: 'Continue? Accept Friend Request',
|
||||
description: t('confirm.accept_friend_request'),
|
||||
title: 'Confirm'
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
@@ -349,7 +349,7 @@
|
||||
function acceptRequestInvite(row) {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: 'Continue? Send Invite',
|
||||
description: t('confirm.send_invite'),
|
||||
title: 'Confirm'
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
@@ -381,7 +381,7 @@
|
||||
row.senderUserId
|
||||
)
|
||||
.then((_args) => {
|
||||
toast('Invite sent');
|
||||
toast(t('message.invite.sent'));
|
||||
notificationRequest.hideNotification({
|
||||
notificationId: row.id
|
||||
});
|
||||
@@ -459,7 +459,7 @@
|
||||
function hideNotificationPrompt(row) {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: `Continue? Decline ${row.type}`,
|
||||
description: t('confirm.decline_type', { type: row.type }),
|
||||
title: 'Confirm'
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
@@ -483,7 +483,7 @@
|
||||
function deleteNotificationLogPrompt(row) {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: `Continue? Trash2 ${row.type}`,
|
||||
description: t('confirm.delete_type', { type: row.type }),
|
||||
title: 'Confirm'
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
|
||||
@@ -543,7 +543,11 @@ export const createColumns = ({
|
||||
</button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent side="top">
|
||||
<span>Accept</span>
|
||||
<span>
|
||||
{t(
|
||||
'view.notification.actions.accept'
|
||||
)}
|
||||
</span>
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
</TooltipProvider>
|
||||
@@ -567,7 +571,9 @@ export const createColumns = ({
|
||||
</TooltipTrigger>
|
||||
<TooltipContent side="top">
|
||||
<span>
|
||||
Decline with message
|
||||
{t(
|
||||
'view.notification.actions.decline_with_message'
|
||||
)}
|
||||
</span>
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
@@ -593,7 +599,11 @@ export const createColumns = ({
|
||||
</button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent side="top">
|
||||
<span>Invite</span>
|
||||
<span>
|
||||
{t(
|
||||
'view.notification.actions.invite'
|
||||
)}
|
||||
</span>
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
</TooltipProvider>
|
||||
@@ -615,7 +625,9 @@ export const createColumns = ({
|
||||
</TooltipTrigger>
|
||||
<TooltipContent side="top">
|
||||
<span>
|
||||
Decline with message
|
||||
{t(
|
||||
'view.notification.actions.decline_with_message'
|
||||
)}
|
||||
</span>
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
@@ -705,7 +717,11 @@ export const createColumns = ({
|
||||
</button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent side="top">
|
||||
<span>Decline</span>
|
||||
<span>
|
||||
{t(
|
||||
'view.notification.actions.decline'
|
||||
)}
|
||||
</span>
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
</TooltipProvider>
|
||||
@@ -736,7 +752,11 @@ export const createColumns = ({
|
||||
</button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent side="top">
|
||||
<span>Delete log</span>
|
||||
<span>
|
||||
{t(
|
||||
'view.notification.actions.delete_log'
|
||||
)}
|
||||
</span>
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
</TooltipProvider>
|
||||
@@ -767,7 +787,11 @@ export const createColumns = ({
|
||||
</button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent side="top">
|
||||
<span>Delete log</span>
|
||||
<span>
|
||||
{t(
|
||||
'view.notification.actions.delete_log'
|
||||
)}
|
||||
</span>
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
</TooltipProvider>
|
||||
|
||||
@@ -79,8 +79,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');
|
||||
}
|
||||
|
||||
@@ -507,7 +507,7 @@
|
||||
if (result) {
|
||||
toast.success('Folder opened');
|
||||
} else {
|
||||
toast.error("Folder dosn't exist");
|
||||
toast.error(t('message.file.folder_missing'));
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -517,7 +517,7 @@
|
||||
if (result) {
|
||||
toast.success('Folder opened');
|
||||
} else {
|
||||
toast.error("Folder dosn't exist");
|
||||
toast.error(t('message.file.folder_missing'));
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -527,7 +527,7 @@
|
||||
if (result) {
|
||||
toast.success('Folder opened');
|
||||
} else {
|
||||
toast.error("Folder dosn't exist");
|
||||
toast.error(t('message.file.folder_missing'));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
D.vrcLaunchPathOverride.endsWith('.exe') &&
|
||||
!D.vrcLaunchPathOverride.endsWith('launch.exe')
|
||||
) {
|
||||
toast.error('Invalid path, you must enter VRChat folder or launch.exe');
|
||||
toast.error(t('message.launch.invalid_path'));
|
||||
return;
|
||||
}
|
||||
configRepository.setString('vrcLaunchPathOverride', D.vrcLaunchPathOverride);
|
||||
|
||||
@@ -737,7 +737,7 @@
|
||||
|
||||
function setProfilePicOverride(fileId) {
|
||||
if (!isLocalUserVrcPlusSupporter.value) {
|
||||
toast.error('VRCPlus required');
|
||||
toast.error(t('message.vrcplus.required'));
|
||||
return;
|
||||
}
|
||||
let profilePicOverride = '';
|
||||
@@ -834,7 +834,7 @@
|
||||
|
||||
function setVRCPlusIcon(fileId) {
|
||||
if (!isLocalUserVrcPlusSupporter.value) {
|
||||
toast.error('VRCPlus required');
|
||||
toast.error(t('message.vrcplus.required'));
|
||||
return;
|
||||
}
|
||||
let userIcon = '';
|
||||
|
||||
@@ -286,7 +286,7 @@
|
||||
if (result) {
|
||||
toast.success('Folder opened');
|
||||
} else {
|
||||
toast.error("Folder dosn't exist");
|
||||
toast.error(t('message.file.folder_missing'));
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -296,7 +296,7 @@
|
||||
if (result) {
|
||||
toast.success('Folder opened');
|
||||
} else {
|
||||
toast.error("Folder dosn't exist");
|
||||
toast.error(t('message.file.folder_missing'));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -70,8 +70,9 @@
|
||||
})
|
||||
.then((args) => {
|
||||
if (args.json[slot].message === props.inviteMessage.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.success('Invite message updated');
|
||||
emit('updateInviteMessages', messageType);
|
||||
|
||||
Reference in New Issue
Block a user