diff --git a/src/lib/components/mods/ModLatestVersions.svelte b/src/lib/components/mods/ModLatestVersions.svelte index 5a00d53a3..dcc584ee4 100644 --- a/src/lib/components/mods/ModLatestVersions.svelte +++ b/src/lib/components/mods/ModLatestVersions.svelte @@ -6,6 +6,7 @@ import VersionTargetSupportGrid from '$lib/components/versions/VersionTargetSupportGrid.svelte'; import VersionDependenciesGrid from '$lib/components/versions/VersionDependenciesGrid.svelte'; import type { Version, VersionDependency, VersionTarget } from '$lib/generated'; + import { T } from '@tolgee/svelte'; type IVersion = Pick & { targets?: Pick[]; @@ -31,7 +32,7 @@
-

{$t('mod.latest-versions')}

+

{#each Object.keys(stabilities) as stability} {#if latestVersions[stability]} @@ -43,22 +44,25 @@ Version {latestVersions[stability].version} + title={$t('version.version-number.tooltip', 'Click to view patch notes for this version')}> +
{prettyDate(latestVersions[stability].created_at)}
- {#if latestVersions[stability].targets.length > 1} - - {/if} + {/if} {/each} diff --git a/src/lib/components/versions/VersionTargetSupportGrid.svelte b/src/lib/components/versions/VersionTargetSupportGrid.svelte index 6f5a741a8..3834a0d9e 100644 --- a/src/lib/components/versions/VersionTargetSupportGrid.svelte +++ b/src/lib/components/versions/VersionTargetSupportGrid.svelte @@ -1,14 +1,29 @@