mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 14:26:06 +02:00
i18n
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
<DropdownMenuContent class="favorites-dropdown">
|
||||
<li class="favorites-dropdown__control" @click.stop>
|
||||
<div class="favorites-dropdown__control-header">
|
||||
<span>Scale</span>
|
||||
<span>{{ t('view.friends_locations.scale') }}</span>
|
||||
<span class="favorites-dropdown__control-value">{{ avatarCardScalePercent }}%</span>
|
||||
</div>
|
||||
<Slider
|
||||
@@ -52,7 +52,7 @@
|
||||
</li>
|
||||
<li class="favorites-dropdown__control" @click.stop>
|
||||
<div class="favorites-dropdown__control-header">
|
||||
<span>Spacing</span>
|
||||
<span>{{ t('view.friends_locations.spacing') }}</span>
|
||||
<span class="favorites-dropdown__control-value">
|
||||
{{ avatarCardSpacingPercent }}%
|
||||
</span>
|
||||
@@ -294,7 +294,7 @@
|
||||
</div>
|
||||
<div class="group-section">
|
||||
<div class="group-section__header">
|
||||
<span>Local History</span>
|
||||
<span>{{ t('view.favorite.avatars.local_history') }}</span>
|
||||
<DropdownMenu
|
||||
:open="activeGroupMenu === historyGroupMenuKey"
|
||||
@update:open="handleGroupMenuVisible(historyGroupMenuKey, $event)">
|
||||
@@ -318,7 +318,9 @@
|
||||
]"
|
||||
@click="handleGroupClick('history', historyGroupKey)">
|
||||
<div class="group-item__top">
|
||||
<span class="group-item__name">Local History</span>
|
||||
<span class="group-item__name">{{
|
||||
t('view.favorite.avatars.local_history')
|
||||
}}</span>
|
||||
<span class="group-item__count">{{ avatarHistory.length }}/100</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -350,7 +352,7 @@
|
||||
<small>{{ avatarHistory.length }}/100</small>
|
||||
</span>
|
||||
</template>
|
||||
<span v-else>No Group Selected</span>
|
||||
<span v-else>{{ t('view.favorite.avatars.no_group_selected') }}</span>
|
||||
</div>
|
||||
<div class="favorites-content__edit">
|
||||
<span>{{ t('view.favorite.edit_mode') }}</span>
|
||||
@@ -500,7 +502,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="favorites-empty">No Group Selected</div>
|
||||
<div class="favorites-empty">{{ t('view.favorite.avatars.no_group_selected') }}</div>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1237,8 +1239,8 @@
|
||||
function clearFavoriteGroup(ctx) {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: 'Continue? Clear Group',
|
||||
title: 'Confirm'
|
||||
description: t('confirm.clear_group'),
|
||||
title: t('confirm.title')
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
if (ok) {
|
||||
@@ -1279,8 +1281,8 @@
|
||||
function promptLocalAvatarFavoriteGroupDelete(group) {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: `Delete Group? ${group}`,
|
||||
title: 'Confirm'
|
||||
description: t('confirm.delete_group', { name: group }),
|
||||
title: t('confirm.title')
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
if (ok) {
|
||||
|
||||
@@ -955,8 +955,8 @@
|
||||
function clearFavoriteGroup(ctx) {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: 'Continue? Clear Group',
|
||||
title: 'Confirm'
|
||||
description: t('confirm.clear_group'),
|
||||
title: t('confirm.title')
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
if (ok) {
|
||||
@@ -1035,7 +1035,7 @@
|
||||
favoriteGroupId: args.json.id
|
||||
}
|
||||
});
|
||||
toast.success('Group visibility changed');
|
||||
toast.success(t('message.group.visibility_updated'));
|
||||
if (menuKey) {
|
||||
handleGroupMenuVisible(menuKey, false);
|
||||
}
|
||||
@@ -1107,8 +1107,8 @@
|
||||
handleGroupMenuVisible(localGroupMenuKey(group), false);
|
||||
modalStore
|
||||
.confirm({
|
||||
description: 'Continue? Delete Group',
|
||||
title: 'Confirm'
|
||||
description: t('confirm.delete_group', { name: group }),
|
||||
title: t('confirm.title')
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
if (!ok) return;
|
||||
|
||||
@@ -1137,7 +1137,7 @@
|
||||
favoriteGroupId: args.json.id
|
||||
}
|
||||
});
|
||||
toast.success('Group visibility changed');
|
||||
toast.success(t('message.group.visibility_updated'));
|
||||
if (menuKey) {
|
||||
handleGroupMenuVisible(menuKey, false);
|
||||
}
|
||||
@@ -1174,8 +1174,8 @@
|
||||
function promptLocalWorldFavoriteGroupDelete(group) {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: `Delete Group? ${group}`,
|
||||
title: 'Confirm'
|
||||
description: t('confirm.delete_group', { name: group }),
|
||||
title: t('confirm.title')
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
if (ok) {
|
||||
@@ -1188,8 +1188,8 @@
|
||||
function clearFavoriteGroup(ctx) {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: 'Continue? Clear Group',
|
||||
title: 'Confirm'
|
||||
description: t('confirm.clear_group'),
|
||||
title: t('confirm.title')
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
if (ok) {
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
.editInviteMessage(params, messageType, slot)
|
||||
.catch((err) => {
|
||||
console.error('Invite response message update failed', err);
|
||||
toast.error('Error');
|
||||
toast.error(t('message.error'));
|
||||
})
|
||||
.then((args) => {
|
||||
if (args.json[slot].message === I.messageSlot.message) {
|
||||
@@ -84,7 +84,7 @@
|
||||
toast.error(errorMessage);
|
||||
throw new Error(errorMessage);
|
||||
} else {
|
||||
toast('Invite message updated');
|
||||
toast(t('message.invite.message_updated'));
|
||||
}
|
||||
return args;
|
||||
});
|
||||
@@ -98,13 +98,13 @@
|
||||
.sendInviteResponsePhoto(params, I.invite.id)
|
||||
.catch((err) => {
|
||||
console.error('Invite response photo failed', err);
|
||||
toast.error('Error');
|
||||
toast.error(t('message.error'));
|
||||
})
|
||||
.then((args) => {
|
||||
notificationRequest.hideNotification({
|
||||
notificationId: I.invite.id
|
||||
});
|
||||
toast.success('Invite response message sent');
|
||||
toast.success(t('message.invite.response_sent'));
|
||||
return args;
|
||||
})
|
||||
.finally(() => {
|
||||
@@ -115,13 +115,13 @@
|
||||
.sendInviteResponse(params, I.invite.id)
|
||||
.catch((err) => {
|
||||
console.error('Invite response failed', err);
|
||||
toast.error('Error');
|
||||
toast.error(t('message.error'));
|
||||
})
|
||||
.then((args) => {
|
||||
notificationRequest.hideNotification({
|
||||
notificationId: I.invite.id
|
||||
});
|
||||
toast.success('Invite response message sent');
|
||||
toast.success(t('message.invite.response_sent'));
|
||||
return args;
|
||||
})
|
||||
.finally(() => {
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
notificationRequest.hideNotification({
|
||||
notificationId: D.invite.id
|
||||
});
|
||||
toast.success('Invite response photo message sent');
|
||||
toast.success(t('message.invite.response_photo_sent'));
|
||||
return args;
|
||||
})
|
||||
.finally(() => {
|
||||
@@ -79,13 +79,13 @@
|
||||
.sendInviteResponse(params, D.invite.id)
|
||||
.catch((err) => {
|
||||
console.error('Invite response failed', err);
|
||||
toast.error('Error');
|
||||
toast.error(t('message.error'));
|
||||
})
|
||||
.then((args) => {
|
||||
notificationRequest.hideNotification({
|
||||
notificationId: D.invite.id
|
||||
});
|
||||
toast.success('Invite response message sent');
|
||||
toast.success(t('message.invite.response_sent'));
|
||||
return args;
|
||||
})
|
||||
.finally(() => {
|
||||
|
||||
@@ -39,7 +39,9 @@
|
||||
<template v-if="photonLoggingEnabled">
|
||||
<br />
|
||||
<div class="mb-[5px] flex items-center">
|
||||
<span class="inline-block min-w-[190px] pr-2.5 text-right">Photon Event Logging</span>
|
||||
<span class="inline-block min-w-[190px] pr-2.5 text-right">{{
|
||||
t('view.feed.photon_event_logging')
|
||||
}}</span>
|
||||
</div>
|
||||
<div
|
||||
v-for="setting in photonFeedFiltersOptions"
|
||||
@@ -73,9 +75,7 @@
|
||||
<Button variant="secondary" @click="currentResetFunction">{{
|
||||
t('dialog.shared_feed_filters.reset')
|
||||
}}</Button>
|
||||
<Button @click="handleDialogClose">{{
|
||||
t('dialog.shared_feed_filters.close')
|
||||
}}</Button>
|
||||
<Button @click="handleDialogClose">{{ t('dialog.shared_feed_filters.close') }}</Button>
|
||||
</DialogFooter>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
|
||||
@@ -330,8 +330,8 @@
|
||||
function showDeleteAllVRChatCacheConfirm() {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: 'Continue? all VRChat cache',
|
||||
title: 'Confirm'
|
||||
description: t('confirm.clear_cache'),
|
||||
title: t('confirm.title')
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
if (ok) {
|
||||
@@ -344,9 +344,9 @@
|
||||
async function deleteAllVRChatCache() {
|
||||
try {
|
||||
await AssetBundleManager.DeleteAllCache();
|
||||
toast.success('All VRChat cache deleted');
|
||||
toast.success(t('message.cache.deleted'));
|
||||
} catch (error) {
|
||||
toast.error(`Error deleting VRChat cache: ${error.message}`);
|
||||
toast.error(t('message.cache.delete_error', { error: error.message }));
|
||||
}
|
||||
getVRChatCacheSize();
|
||||
}
|
||||
@@ -441,7 +441,7 @@
|
||||
const parsedConfig = JSON.parse(config);
|
||||
VRChatConfigFile.value = { ...VRChatConfigFile.value, ...parsedConfig };
|
||||
} catch {
|
||||
toast.error('Invalid JSON in config.json');
|
||||
toast.error(t('message.cache.invalid_config'));
|
||||
throw new Error('Invalid JSON in config.json');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,8 +119,8 @@
|
||||
function restoreVrcRegistryBackup(row) {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: 'Continue? Restore Backup',
|
||||
title: 'Confirm'
|
||||
description: t('confirm.restore_backup'),
|
||||
title: t('confirm.title')
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
if (!ok) {
|
||||
@@ -129,11 +129,11 @@
|
||||
const data = JSON.stringify(row.data);
|
||||
AppApi.SetVRChatRegistry(data)
|
||||
.then(() => {
|
||||
toast.success('VRC registry settings restored');
|
||||
toast.success(t('message.registry.restored'));
|
||||
})
|
||||
.catch((e) => {
|
||||
console.error(e);
|
||||
toast.error(`Failed to restore VRC registry settings, check console for full error: ${e}`);
|
||||
toast.error(t('message.registry.restore_failed', { error: e }));
|
||||
});
|
||||
})
|
||||
.catch(() => {});
|
||||
@@ -153,15 +153,15 @@
|
||||
function deleteVrcRegistry() {
|
||||
modalStore
|
||||
.confirm({
|
||||
description: 'Continue? Delete VRC Registry Settings',
|
||||
title: 'Confirm'
|
||||
description: t('confirm.delete_vrc_registry'),
|
||||
title: t('confirm.title')
|
||||
})
|
||||
.then(({ ok }) => {
|
||||
if (!ok) {
|
||||
return;
|
||||
}
|
||||
AppApi.DeleteVRChatRegistryFolder().then(() => {
|
||||
toast.success('VRC registry settings deleted');
|
||||
toast.success(t('message.registry.deleted'));
|
||||
});
|
||||
})
|
||||
.catch(() => {});
|
||||
@@ -175,11 +175,11 @@
|
||||
function promptVrcRegistryBackupName() {
|
||||
modalStore
|
||||
.prompt({
|
||||
title: 'Backup Name',
|
||||
description: 'Enter a name for the backup',
|
||||
title: t('prompt.backup_name.header'),
|
||||
description: t('prompt.backup_name.description'),
|
||||
inputValue: 'Backup',
|
||||
pattern: /\S+/,
|
||||
errorMessage: 'Name is required'
|
||||
errorMessage: t('prompt.backup_name.input_error')
|
||||
})
|
||||
.then(({ ok, value }) => {
|
||||
if (!ok) return;
|
||||
@@ -245,14 +245,14 @@
|
||||
}
|
||||
AppApi.SetVRChatRegistry(json)
|
||||
.then(() => {
|
||||
toast.success('VRC registry settings restored');
|
||||
toast.success(t('message.registry.restored'));
|
||||
})
|
||||
.catch((e) => {
|
||||
console.error(e);
|
||||
toast.error(`Failed to restore VRC registry settings, check console for full error: ${e}`);
|
||||
toast.error(t('message.registry.restore_failed', { error: e }));
|
||||
});
|
||||
} catch {
|
||||
toast.error('Invalid JSON');
|
||||
toast.error(t('message.registry.invalid_json'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user