mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-23 00:33:50 +02:00
improve i18n
This commit is contained in:
@@ -52,17 +52,17 @@
|
||||
<div class="flex items-center">
|
||||
<InputGroupSearch
|
||||
v-model="screenshotMetadataDialog.search"
|
||||
placeholder="Search"
|
||||
:placeholder="t('dialog.screenshot_metadata.search_placeholder')"
|
||||
style="width: 200px"
|
||||
@input="screenshotMetadataSearch" />
|
||||
<Select :model-value="screenshotMetadataDialog.searchType" @update:modelValue="handleSearchTypeChange">
|
||||
<SelectTrigger size="sm" style="width: 150px; margin-left: 10px">
|
||||
<SelectValue placeholder="Search Type" />
|
||||
<SelectValue :placeholder="t('dialog.screenshot_metadata.search_type_placeholder')" />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectGroup>
|
||||
<SelectItem v-for="type in screenshotMetadataDialog.searchTypes" :key="type" :value="type">
|
||||
{{ type }}
|
||||
{{ t(screenshotMetadataSearchTypeLabels[type] ?? type) }}
|
||||
</SelectItem>
|
||||
</SelectGroup>
|
||||
</SelectContent>
|
||||
@@ -178,13 +178,20 @@
|
||||
loading: false,
|
||||
search: '',
|
||||
searchType: 'Player Name',
|
||||
searchTypes: ['Player Name', 'Player ID', 'World Name', 'World ID'],
|
||||
searchTypes: ['Player Name', 'Player ID', 'World Name', 'World ID'],
|
||||
searchIndex: null,
|
||||
searchResults: null,
|
||||
metadata: {},
|
||||
isUploading: false
|
||||
});
|
||||
|
||||
const screenshotMetadataSearchTypeLabels = {
|
||||
'Player Name': 'dialog.screenshot_metadata.search_types.player_name',
|
||||
'Player ID': 'dialog.screenshot_metadata.search_types.player_id',
|
||||
'World Name': 'dialog.screenshot_metadata.search_types.world_name',
|
||||
'World ID': 'dialog.screenshot_metadata.search_types.world_id'
|
||||
};
|
||||
|
||||
const screenshotMetadataSearchInputs = ref(0);
|
||||
const screenshotMetadataCarouselApi = ref(null);
|
||||
const ignoreCarouselSelect = ref(false);
|
||||
|
||||
Reference in New Issue
Block a user