diff --git a/src/components/proposals/proposal-package-reply.svelte b/src/components/proposals/proposal-package-reply.svelte index 51814f72..f8467a78 100644 --- a/src/components/proposals/proposal-package-reply.svelte +++ b/src/components/proposals/proposal-package-reply.svelte @@ -111,7 +111,9 @@ 'bg-foreground dark:bg-background-offset text-foreground border rounded-b-lg' )} > -

{t('proposals.reply.description')}

+

+ {t('proposals.reply.description')} +

import { t } from '$lib/i18n'; + import { DAYS_PER_MONTH } from '$lib/utils/proposals'; import type { ProposalPackagePricingStoryblok } from '$types/bloks'; import clsx from 'clsx'; @@ -138,7 +139,8 @@ {projectManagement.department.name} ~ {(20 * +projectManagement.rate_value * +projectManagement.team_size) / 100} + >~ {(DAYS_PER_MONTH * +projectManagement.rate_value * +projectManagement.team_size) / + 100} {t('proposals.days-per-month')}

@@ -155,7 +157,7 @@ {qualityAssurance.department.name} ~ {(20 * +qualityAssurance.rate_value * +qualityAssurance.team_size) / 100} + >~ {(DAYS_PER_MONTH * +qualityAssurance.rate_value * +qualityAssurance.team_size) / 100} {t('proposals.days-per-month')}

diff --git a/src/lib/i18n/data.json b/src/lib/i18n/data.json index 7613f096..36f6c67f 100644 --- a/src/lib/i18n/data.json +++ b/src/lib/i18n/data.json @@ -142,9 +142,9 @@ "proposals.accept.secondary-title": "Is this binding? No.", "proposals.accept.secondary-subtitle": "It is a declaration of interest? Yes.", "proposals.accept.button": "Accept proposal", - "proposals.accept.contact.title": "Discuss further.", - "proposals.accept.contact.subtitle": "If you wish to discussing things further, we'll be happy to do so. ", - "proposals.accept.contact.button": "Contact us", + "proposals.accept.contact.title": "Want to discuss further? ", + "proposals.accept.contact.subtitle": "Let's go! But beware, the button below will open your email client. ", + "proposals.accept.contact.button": "Contact {{name}}", "proposals.accept.error": "Unfortunately we couldn't receive your response. Please contact us by email.", "proposals.month": "month", "proposals.months": "months", diff --git a/src/routes/(proposals)/proposal/[slug]/accept/+page.svelte b/src/routes/(proposals)/proposal/[slug]/accept/+page.svelte index 6121fe66..07726928 100644 --- a/src/routes/(proposals)/proposal/[slug]/accept/+page.svelte +++ b/src/routes/(proposals)/proposal/[slug]/accept/+page.svelte @@ -91,12 +91,17 @@
-

{t('proposals.accept.secondary-title')}

-

{t('proposals.accept.secondary-subtitle')}

+

{t('proposals.accept.secondary-title')}

+

+ {t('proposals.accept.secondary-subtitle')} +

- {t('proposals.accept.button')}
@@ -119,8 +124,11 @@ variant="secondary" class="mt-6 md:mt-0" as="a" - href="mailto:{proposal?.created_by.content.email}" - >{t('proposals.accept.contact.button')}{t('proposals.accept.contact.button', { + name: proposal?.created_by.name.split(' ')[0] + })} {/if}