This commit is contained in:
pa
2026-03-17 10:16:08 +09:00
parent 9f306399d1
commit a815e88933
6 changed files with 18 additions and 10 deletions

View File

@@ -607,6 +607,7 @@
const {
newInstanceDialog,
isLocalUserVrcPlusSupporter,
buildInstance,
buildLegacyInstance,
updateNewInstanceDialog,

View File

@@ -327,6 +327,7 @@ export function useNewInstanceBuilder(locationTagRef) {
return {
newInstanceDialog,
isLocalUserVrcPlusSupporter,
buildInstance,
buildLegacyInstance,
updateNewInstanceDialog,

View File

@@ -656,7 +656,7 @@
homeLocation: ''
})
.then((args) => {
toast.success('Home world has been reset');
toast.success(t('message.user.home_reset'));
return args;
});
})
@@ -668,7 +668,7 @@
* @param userId
*/
function copyUserId(userId) {
copyToClipboard(userId, 'User ID copied to clipboard');
copyToClipboard(userId, t('message.user.id_copied'));
}
/**
@@ -676,7 +676,7 @@
* @param 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
*/
function copyUserDisplayName(displayName) {
copyToClipboard(displayName, 'User DisplayName copied to clipboard');
copyToClipboard(displayName, t('message.user.display_name_copied'));
}
/**

View File

@@ -161,7 +161,7 @@ describe('useUserDialogCommands', () => {
userDialogCommand('Share');
expect(copyToClipboard).toHaveBeenCalledWith(
'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');
expect(deps.toast.error).toHaveBeenCalledWith(
'No fallback avatar set'
'message.user.no_fallback_avatar'
);
});

View File

@@ -235,7 +235,7 @@ export function useUserDialogCommands(
Share: () => {
copyToClipboard(
`https://vrchat.com/home/user/${D().id}`,
'User URL copied to clipboard'
t('message.user.url_copied')
);
},
'Add Favorite': () => {
@@ -254,7 +254,7 @@ export function useUserDialogCommands(
D().id
)
.then((args) => {
toast('Request invite sent');
toast(t('message.user.request_invite_sent'));
recordRecentAction(D().id, 'Request Invite');
return args;
});
@@ -326,7 +326,7 @@ export function useUserDialogCommands(
if (fallbackAvatar) {
showAvatarDialog(fallbackAvatar);
} else {
toast.error('No fallback avatar set');
toast.error(t('message.user.no_fallback_avatar'));
}
},
'Previous Instances': () => {

View File

@@ -2570,7 +2570,13 @@
},
"user": {
"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": {
"load_failed": "Failed to load friends list, logging out"