mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
fix
This commit is contained in:
@@ -607,6 +607,7 @@
|
|||||||
|
|
||||||
const {
|
const {
|
||||||
newInstanceDialog,
|
newInstanceDialog,
|
||||||
|
isLocalUserVrcPlusSupporter,
|
||||||
buildInstance,
|
buildInstance,
|
||||||
buildLegacyInstance,
|
buildLegacyInstance,
|
||||||
updateNewInstanceDialog,
|
updateNewInstanceDialog,
|
||||||
|
|||||||
@@ -327,6 +327,7 @@ export function useNewInstanceBuilder(locationTagRef) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
newInstanceDialog,
|
newInstanceDialog,
|
||||||
|
isLocalUserVrcPlusSupporter,
|
||||||
buildInstance,
|
buildInstance,
|
||||||
buildLegacyInstance,
|
buildLegacyInstance,
|
||||||
updateNewInstanceDialog,
|
updateNewInstanceDialog,
|
||||||
|
|||||||
@@ -656,7 +656,7 @@
|
|||||||
homeLocation: ''
|
homeLocation: ''
|
||||||
})
|
})
|
||||||
.then((args) => {
|
.then((args) => {
|
||||||
toast.success('Home world has been reset');
|
toast.success(t('message.user.home_reset'));
|
||||||
return args;
|
return args;
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
@@ -668,7 +668,7 @@
|
|||||||
* @param userId
|
* @param userId
|
||||||
*/
|
*/
|
||||||
function copyUserId(userId) {
|
function copyUserId(userId) {
|
||||||
copyToClipboard(userId, 'User ID copied to clipboard');
|
copyToClipboard(userId, t('message.user.id_copied'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -676,7 +676,7 @@
|
|||||||
* @param userId
|
* @param userId
|
||||||
*/
|
*/
|
||||||
function copyUserURL(userId) {
|
function copyUserURL(userId) {
|
||||||
copyToClipboard(`https://vrchat.com/home/user/${userId}`, 'User URL copied to clipboard');
|
copyToClipboard(`https://vrchat.com/home/user/${userId}`, t('message.user.url_copied'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -684,7 +684,7 @@
|
|||||||
* @param displayName
|
* @param displayName
|
||||||
*/
|
*/
|
||||||
function copyUserDisplayName(displayName) {
|
function copyUserDisplayName(displayName) {
|
||||||
copyToClipboard(displayName, 'User DisplayName copied to clipboard');
|
copyToClipboard(displayName, t('message.user.display_name_copied'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ describe('useUserDialogCommands', () => {
|
|||||||
userDialogCommand('Share');
|
userDialogCommand('Share');
|
||||||
expect(copyToClipboard).toHaveBeenCalledWith(
|
expect(copyToClipboard).toHaveBeenCalledWith(
|
||||||
'https://vrchat.com/home/user/usr_test123',
|
'https://vrchat.com/home/user/usr_test123',
|
||||||
'User URL copied to clipboard'
|
'message.user.url_copied'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -207,7 +207,7 @@ describe('useUserDialogCommands', () => {
|
|||||||
);
|
);
|
||||||
userDialogCommand('Show Fallback Avatar Details');
|
userDialogCommand('Show Fallback Avatar Details');
|
||||||
expect(deps.toast.error).toHaveBeenCalledWith(
|
expect(deps.toast.error).toHaveBeenCalledWith(
|
||||||
'No fallback avatar set'
|
'message.user.no_fallback_avatar'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ export function useUserDialogCommands(
|
|||||||
Share: () => {
|
Share: () => {
|
||||||
copyToClipboard(
|
copyToClipboard(
|
||||||
`https://vrchat.com/home/user/${D().id}`,
|
`https://vrchat.com/home/user/${D().id}`,
|
||||||
'User URL copied to clipboard'
|
t('message.user.url_copied')
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
'Add Favorite': () => {
|
'Add Favorite': () => {
|
||||||
@@ -254,7 +254,7 @@ export function useUserDialogCommands(
|
|||||||
D().id
|
D().id
|
||||||
)
|
)
|
||||||
.then((args) => {
|
.then((args) => {
|
||||||
toast('Request invite sent');
|
toast(t('message.user.request_invite_sent'));
|
||||||
recordRecentAction(D().id, 'Request Invite');
|
recordRecentAction(D().id, 'Request Invite');
|
||||||
return args;
|
return args;
|
||||||
});
|
});
|
||||||
@@ -326,7 +326,7 @@ export function useUserDialogCommands(
|
|||||||
if (fallbackAvatar) {
|
if (fallbackAvatar) {
|
||||||
showAvatarDialog(fallbackAvatar);
|
showAvatarDialog(fallbackAvatar);
|
||||||
} else {
|
} else {
|
||||||
toast.error('No fallback avatar set');
|
toast.error(t('message.user.no_fallback_avatar'));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'Previous Instances': () => {
|
'Previous Instances': () => {
|
||||||
|
|||||||
@@ -2570,7 +2570,13 @@
|
|||||||
},
|
},
|
||||||
"user": {
|
"user": {
|
||||||
"moderated": "User moderated",
|
"moderated": "User moderated",
|
||||||
"load_failed": "Failed to load user"
|
"load_failed": "Failed to load user",
|
||||||
|
"id_copied": "User ID copied to clipboard",
|
||||||
|
"url_copied": "User URL copied to clipboard",
|
||||||
|
"display_name_copied": "User DisplayName copied to clipboard",
|
||||||
|
"home_reset": "Home world has been reset",
|
||||||
|
"request_invite_sent": "Request invite sent",
|
||||||
|
"no_fallback_avatar": "No fallback avatar set"
|
||||||
},
|
},
|
||||||
"friend": {
|
"friend": {
|
||||||
"load_failed": "Failed to load friends list, logging out"
|
"load_failed": "Failed to load friends list, logging out"
|
||||||
|
|||||||
Reference in New Issue
Block a user