Show proper platform version label

Fixes #1150
This commit is contained in:
Nassim Jahnke 2023-04-22 22:24:12 +02:00
parent 173714884f
commit 19dbe2bb4b
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
2 changed files with 6 additions and 2 deletions

View File

@ -56,7 +56,11 @@
"subTitle": "Hangar allows you to find the best Paper, Velocity, or Waterfall plugins for your Minecraft server.", "subTitle": "Hangar allows you to find the best Paper, Velocity, or Waterfall plugins for your Minecraft server.",
"categories": "Categories", "categories": "Categories",
"licenses": "Licenses", "licenses": "Licenses",
"versions": "Minecraft versions", "versions": {
"PAPER": "Minecraft versions",
"WATERFALL": "Waterfall versions",
"VELOCITY": "Velocity versions"
},
"platforms": "Platforms", "platforms": "Platforms",
"tags": "Tags" "tags": "Tags"
}, },

View File

@ -241,7 +241,7 @@ useHead(meta);
</div> </div>
</div> </div>
<div v-if="filters.platform" class="versions"> <div v-if="filters.platform" class="versions">
<h4 class="font-bold mb-1">{{ i18n.t("hangar.projectSearch.versions") }}</h4> <h4 class="font-bold mb-1">{{ i18n.t("hangar.projectSearch.versions." + filters.platform) }}</h4>
<div class="max-h-40 overflow-auto"> <div class="max-h-40 overflow-auto">
<VersionSelector v-model="filters.versions" :versions="versions(filters.platform)" :open="false" col /> <VersionSelector v-model="filters.versions" :versions="versions(filters.platform)" :open="false" col />
</div> </div>