Merge pull request #2313 from appwrite/fix-project-count-grammar

fix: project-count-grammar
This commit is contained in:
Damodar Lohani authored and GitHub committed 2025-09-03 13:09:11 +05:45
commit 8d60e38bf5
1 file changed
+3 -2
@@ -139,8 +139,9 @@
{#if isCloud && $currentPlan?.projects && $currentPlan?.projects > 0 && data.organization.projects.length > 0 && $canWriteProjects && (projectsToArchive.length > 0 || data.projects.total > $currentPlan.projects)}
{@const difference = projectsToArchive.length}
{@const messagePrefix = difference > 1 ? `${difference} projects` : `${difference} project`}
<Alert.Inline title={`${messagePrefix} are archived`}>
{@const messagePrefix =
difference !== 1 ? `${difference} projects are` : `${difference} project is`}
<Alert.Inline title={`${messagePrefix} archived`}>
<Typography.Text>Upgrade your plan to restore archived projects</Typography.Text>
<svelte:fragment slot="actions">
<Button