-
Organizations
+
{$langKeyStore['author.organizations']}
{#each orgs as org}
{org.login}
- owns {org.pkg_count}
- {org.pkg_count == 1 ? 'package' : 'packages'}
+ {$langKeyStore['author.owns']} {org.pkg_count}
+ {$langKeyStore[org.pkg_count == 1 ? 'author.package_singular' : 'author.package_plural']}
diff --git a/src/lib/project/PackageList.svelte b/src/lib/project/PackageList.svelte
index f4ae781..d89603e 100644
--- a/src/lib/project/PackageList.svelte
+++ b/src/lib/project/PackageList.svelte
@@ -2,7 +2,7 @@
import { base } from '$app/paths';
import { page } from '$app/stores';
import consts from '$lib/consts';
- import { packageStatStore } from '$lib/stores';
+ import { langKeyStore, packageStatStore } from '$lib/stores';
import { packageNameToReadableFormat } from '$lib/utils';
import { createEventDispatcher } from 'svelte';
import { flip } from 'svelte/animate';
@@ -86,22 +86,22 @@
{packageNameToReadableFormat(name)}
{#if branch && showDetails}
- on branch {branch.substring(1)}
+ {$langKeyStore['list.detailed.on_branch']} {branch.substring(1)}
{/if}
{#if path && showDetails}
- at path {path.substring(1)}
+ {$langKeyStore['list.detailed.at_path']} {path.substring(1)}
{/if}
{#if name != repo && showDetails}
- in repo {repo}
+ {$langKeyStore['list.detailed.in_repo']} {repo}
{/if}
{#if showName}
- by {author}
+ {$langKeyStore['list.by']} {author}
{/if}
- {statDownloads} download{statDownloads == 1 ? '' : 's'} •
- {statViews} view{statViews == 1 ? '' : 's'}
+ {statDownloads} {statDownloads == 1 ? $langKeyStore['list.download_singluar'] : $langKeyStore['list.download_plural']} •
+ {statViews} {statViews == 1 ? $langKeyStore['list.view_singular'] : $langKeyStore['list.view_plural']}
diff --git a/src/lib/project/PackagePreview.svelte b/src/lib/project/PackagePreview.svelte
index 5bea24e..d62e964 100644
--- a/src/lib/project/PackagePreview.svelte
+++ b/src/lib/project/PackagePreview.svelte
@@ -1,6 +1,6 @@